Changeset 629 in dev for trunk/ab5.0/abdev/abdev/include
- Timestamp:
- Jun 2, 2008, 11:50:24 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/abdev/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/include/MainFrame.h
r609 r629 19 19 20 20 class MainFrame 21 : public WindowComponents:: BaseWindow21 : public WindowComponents::MdiWindow 22 22 { 23 23 WindowAreaManager wam; 24 WindowComponents::MdiWindow *mdiWindow;25 24 26 25 public: 26 // リサイズ時のリフレッシュ 27 void Resized(); 27 28 28 29 // WebブラウザでURLを開く … … 70 71 // ファイルがドロップされた 71 72 void OnDropFiles( HDROP hDropInfo ); 73 74 // 再描画 75 void OnPaint( HDC dummy ); 72 76 73 77 // ソースコード表示メッセージ … … 252 256 BEGIN_MSG_MAP( MainFrame ) 253 257 MESSAGE_HANDLER( WM_CREATE, OnCreate ) 258 MSG_WM_SIZE( OnSize ) 254 259 MSG_WM_QUERYENDSESSION( OnQueryEndSession ) 255 260 MSG_WM_CLOSE( OnClose ) … … 263 268 MSG_WM_NOTIFY( OnNotify ); 264 269 MSG_WM_DROPFILES( OnDropFiles ) 270 MSG_WM_PAINT( OnPaint ) 265 271 MESSAGE_HANDLER( WM_SHOWERROR, OnShowSourceLine ) 266 272 … … 366 372 COMMAND_ID_HANDLER_EX( IDM_BLUE, OnCmdColor ) 367 373 COMMAND_ID_HANDLER_EX( IDM_YELLOW, OnCmdColor ) 374 375 CHAIN_MSG_MAP(CUpdateUI<WindowComponents::MdiWindow>) 376 CHAIN_MSG_MAP(CMDIFrameWindowImpl<WindowComponents::MdiWindow>) 368 377 END_MSG_MAP() 369 378 }; -
trunk/ab5.0/abdev/abdev/include/Program.h
r489 r629 6 6 class Program 7 7 { 8 static MainFrame mainFrame;9 8 10 9 static void InitializeWindow(); 11 10 public: 11 static MainFrame mainFrame; 12 12 static CAppModule _Module; 13 13 -
trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h
r625 r629 123 123 const std::string GetSourceFileName() const 124 124 { 125 return this->GetName() + ".ab"; 126 } 127 128 const std::string GetSourceFileNameForOldVer( const std::string &baseDir ) const 129 { 130 if( Jenga::Common::Path( baseDir + this->GetName() + ".ab" ).IsExistFile() ) 131 { 132 return this->GetName() + ".ab"; 133 } 134 if( Jenga::Common::Path( baseDir + this->GetName() + ".abp" ).IsExistFile() ) 135 { 136 return this->GetName() + ".abp"; 137 } 138 if( Jenga::Common::Path( baseDir + this->GetName() + ".sbp" ).IsExistFile() ) 139 { 140 return this->GetName() + ".sbp"; 141 } 125 142 return this->GetName() + ".ab"; 126 143 } -
trunk/ab5.0/abdev/abdev/include/WindowAreaManager.h
r489 r629 15 15 16 16 void Add(); 17 void AddMdiWindow( WindowComponents::MdiWindow *mdiWindow ); 18 19 WindowComponents::MdiWindow *mdiWindow; 17 void AddMdiClientWindow( HWND hMdiClientWnd ); 20 18 }; 21 19 -
trunk/ab5.0/abdev/abdev/include/WindowCollection.h
r489 r629 6 6 class WindowCollection 7 7 { 8 WindowComponents::MdiWindow *mdiWindow;8 HWND hMdiClientWnd; 9 9 WindowComponents::BaseWindowPtrs windows; 10 10 public: 11 11 12 12 WindowCollection() 13 : mdiWindow( NULL )13 : hMdiClientWnd( NULL ) 14 14 { 15 15 } 16 WindowCollection( WindowComponents::MdiWindow *mdiWindow)17 : mdiWindow( mdiWindow)16 WindowCollection( HWND hMdiClientWnd ) 17 : hMdiClientWnd( hMdiClientWnd ) 18 18 { 19 19 } -
trunk/ab5.0/abdev/abdev/include/WindowComponents/MdiWindow.h
r489 r629 29 29 } 30 30 31 BEGIN_UPDATE_UI_MAP( MdiWindow)31 BEGIN_UPDATE_UI_MAP( MdiWindow ) 32 32 // エントリなし 33 33 END_UPDATE_UI_MAP() 34 35 BEGIN_MSG_MAP_EX(MdiWindow)36 MSG_WM_CREATE(OnCreate)37 COMMAND_ID_HANDLER_EX(ID_APP_EXIT, OnFileExit)38 COMMAND_ID_HANDLER_EX(ID_FILE_NEW, OnFileNew)39 COMMAND_ID_HANDLER_EX(ID_WINDOW_CASCADE, OnWindowCascade)40 COMMAND_ID_HANDLER_EX(ID_WINDOW_TILE_HORZ, OnWindowTile)41 COMMAND_ID_HANDLER_EX(ID_WINDOW_ARRANGE, OnWindowArrangeIcons)42 CHAIN_MSG_MAP(CUpdateUI<MdiWindow>)43 CHAIN_MSG_MAP(CMDIFrameWindowImpl<MdiWindow>)44 END_MSG_MAP()45 46 LRESULT OnCreate(LPCREATESTRUCT lpcs);47 48 void OnFileExit(UINT uNotifyCode, int nID, HWND hWndCtl){49 PostMessage(WM_CLOSE);50 }51 52 void OnFileNew(UINT uNotifyCode, int nID, HWND hWndCtl){53 // 子ウィンドウを作成54 MdiChild *child = new MdiChild();55 child->CreateEx( m_hWndClient );56 }57 58 void OnWindowCascade(UINT uNotifyCode, int nID, HWND hWndCtl){59 // 子ウィンドウを重ねて表示60 MDICascade();61 }62 63 void OnWindowTile(UINT uNotifyCode, int nID, HWND hWndCtl){64 // 子ウィンドウを上下に並べて表示65 MDITile();66 }67 68 void OnWindowArrangeIcons(UINT uNotifyCode, int nID, HWND hWndCtl){69 // 最小化された子ウィンドウのアイコンを整列70 MDIIconArrange();71 }72 34 }; 73 35
Note:
See TracChangeset
for help on using the changeset viewer.