source: dev/trunk/ab5.0/abdev/abdev/src/Program.cpp

Last change on this file was 829, checked in by イグトランス (egtra), 12 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
3using namespace ActiveBasic::IDE;
4using namespace ActiveBasic::IDE::WindowComponents;
5
6CAppModule Program::_Module;
7
8MainFrame ActiveBasic::IDE::Program::mainFrame;
9WindowComponents::CodeEditor::Languages ActiveBasic::IDE::Program::languages;
10const WindowComponents::CodeEditor::Language *ActiveBasic::IDE::Program::ablang;
11
12#include "../Common.h"
13extern CNonVolatile *pobj_nv;
14
15void 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
29const std::string Program::GetIdeUserAppDir()
30{
31 return ActiveBasic::Common::Environment::GetUserAppDir() + "\\ide";
32}
33
34void 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.