Last change
on this file since 681 was 681, checked in by dai_9181, 16 years ago |
・TinyXMLをabdevプロジェクトで使えるようにした。
・コードハイライターを汎用的に実装しなおした。syntaxファイルを読み込む仕様とした。
|
File size:
1.1 KB
|
Rev | Line | |
---|
[489] | 1 | #include "stdafx.h"
|
---|
| 2 |
|
---|
| 3 | using namespace ActiveBasic::IDE;
|
---|
| 4 | using namespace ActiveBasic::IDE::WindowComponents;
|
---|
| 5 |
|
---|
| 6 | CAppModule Program::_Module;
|
---|
| 7 |
|
---|
[629] | 8 | MainFrame ActiveBasic::IDE::Program::mainFrame;
|
---|
[681] | 9 | WindowComponents::CodeEditor::Languages ActiveBasic::IDE::Program::languages;
|
---|
| 10 | const WindowComponents::CodeEditor::Language *ActiveBasic::IDE::Program::ablang;
|
---|
[489] | 11 |
|
---|
| 12 | #include "../Common.h"
|
---|
| 13 | extern CNonVolatile *pobj_nv;
|
---|
| 14 |
|
---|
| 15 | void Program::InitializeWindow()
|
---|
| 16 | {
|
---|
| 17 | // メインフレームを作成
|
---|
| 18 | mainFrame.Create(
|
---|
| 19 | HWND_DESKTOP,
|
---|
| 20 | pobj_nv->StartupWindowRect,
|
---|
| 21 | APPLICATION_NAME,
|
---|
| 22 | WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_VISIBLE | (pobj_nv->bWindowMax?WS_MAXIMIZE:NULL),
|
---|
| 23 | WS_EX_ACCEPTFILES
|
---|
| 24 | );
|
---|
| 25 |
|
---|
| 26 | mainFrame.SetMenu( pobj_MainMenu->hMenu );
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | void Program::Main()
|
---|
| 30 | {
|
---|
| 31 | _Module.Init( NULL, GetModuleHandle( NULL ) );
|
---|
| 32 |
|
---|
| 33 | CMessageLoop loop;
|
---|
| 34 | _Module.AddMessageLoop( &loop );
|
---|
| 35 |
|
---|
[681] | 36 | // syntaxを読み込む
|
---|
| 37 | languages.LoadFiles( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\ide\\syntax" );
|
---|
| 38 | ablang = &languages["ab"];
|
---|
| 39 |
|
---|
[489] | 40 | // ウィンドウを初期化
|
---|
| 41 | InitializeWindow();
|
---|
| 42 |
|
---|
| 43 | // メッセージループ
|
---|
| 44 | //loop.Run();
|
---|
| 45 |
|
---|
| 46 | //_Module.RemoveMessageLoop();
|
---|
| 47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.