|
Last change
on this file was 829, checked in by イグトランス (egtra), 14 years ago |
|
svn:eol-styleとsvn:mime-type(文字コード指定含む)の設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/plain; charset=Shift_JIS
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | #include "stdafx.h"
|
|---|
| 2 |
|
|---|
| 3 | using namespace ActiveBasic::IDE;
|
|---|
| 4 | using namespace ActiveBasic::IDE::WindowComponents;
|
|---|
| 5 |
|
|---|
| 6 | CAppModule Program::_Module;
|
|---|
| 7 |
|
|---|
| 8 | MainFrame ActiveBasic::IDE::Program::mainFrame;
|
|---|
| 9 | WindowComponents::CodeEditor::Languages ActiveBasic::IDE::Program::languages;
|
|---|
| 10 | const WindowComponents::CodeEditor::Language *ActiveBasic::IDE::Program::ablang;
|
|---|
| 11 |
|
|---|
| 12 | #include "../Common.h"
|
|---|
| 13 | extern CNonVolatile *pobj_nv;
|
|---|
| 14 |
|
|---|
| 15 | void Program::InitializeWindow()
|
|---|
| 16 | {
|
|---|
| 17 | // メインフレームを作成
|
|---|
| 18 | mainFrame.Create(
|
|---|
| 19 | 0,
|
|---|
| 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 | const std::string Program::GetIdeUserAppDir()
|
|---|
| 30 | {
|
|---|
| 31 | return ActiveBasic::Common::Environment::GetUserAppDir() + "\\ide";
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | void Program::Main(HINSTANCE hinst)
|
|---|
| 35 | {
|
|---|
| 36 | _Module.Init( NULL, hinst );
|
|---|
| 37 |
|
|---|
| 38 | CMessageLoop loop;
|
|---|
| 39 | _Module.AddMessageLoop( &loop );
|
|---|
| 40 |
|
|---|
| 41 | // syntaxを読み込む
|
|---|
| 42 | languages.LoadFiles( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\ide\\syntax" );
|
|---|
| 43 | ablang = &languages["ab"];
|
|---|
| 44 |
|
|---|
| 45 | // ウィンドウを初期化
|
|---|
| 46 | InitializeWindow();
|
|---|
| 47 |
|
|---|
| 48 | // メッセージループ
|
|---|
| 49 | //loop.Run();
|
|---|
| 50 |
|
|---|
| 51 | //_Module.RemoveMessageLoop();
|
|---|
| 52 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.