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 |
|
---|
[717] | 29 | const std::string Program::GetUserAppDir()
|
---|
| 30 | {
|
---|
| 31 | return Jenga::Common::Environment::GetUserAppDir() + "\\ActiveBasic\\ide";
|
---|
| 32 | }
|
---|
| 33 |
|
---|
[489] | 34 | void Program::Main()
|
---|
| 35 | {
|
---|
| 36 | _Module.Init( NULL, GetModuleHandle( NULL ) );
|
---|
| 37 |
|
---|
| 38 | CMessageLoop loop;
|
---|
| 39 | _Module.AddMessageLoop( &loop );
|
---|
| 40 |
|
---|
[681] | 41 | // syntaxを読み込む
|
---|
| 42 | languages.LoadFiles( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\ide\\syntax" );
|
---|
| 43 | ablang = &languages["ab"];
|
---|
| 44 |
|
---|
[489] | 45 | // ウィンドウを初期化
|
---|
| 46 | InitializeWindow();
|
---|
| 47 |
|
---|
| 48 | // メッセージループ
|
---|
| 49 | //loop.Run();
|
---|
| 50 |
|
---|
| 51 | //_Module.RemoveMessageLoop();
|
---|
| 52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.