source: dev/trunk/ab5.0/abdev/abdev/include/WindowComponents/MdiWindow.h@ 681

Last change on this file since 681 was 629, checked in by dai_9181, 16 years ago

MDIINFO構造体をリファクタリング。

File size: 855 bytes
Line 
1#pragma once
2
3namespace ActiveBasic{ namespace IDE{ namespace WindowComponents{
4
5
6class MdiWindow
7 : public CMDIFrameWindowImpl<MdiWindow>
8 , public CUpdateUI<MdiWindow>
9 , public CMessageFilter
10 , public CIdleHandler
11{
12public:
13 virtual BOOL PreTranslateMessage(MSG* pMsg){
14 if(CMDIFrameWindowImpl<MdiWindow>::PreTranslateMessage(pMsg))
15 return TRUE;
16
17 // アクティブな子ウィンドウにメッセージフィルタの機会を与える
18 HWND hWnd = MDIGetActive();
19 if(hWnd != NULL)
20 return (BOOL)::SendMessage(hWnd, WM_FORWARDMSG, 0, (LPARAM)pMsg);
21
22 return FALSE;
23 }
24
25 virtual BOOL OnIdle(){
26 UIUpdateToolBar();
27 UIUpdateStatusBar();
28 return FALSE;
29 }
30
31 BEGIN_UPDATE_UI_MAP( MdiWindow )
32 // エントリなし
33 END_UPDATE_UI_MAP()
34};
35
36
37}}}
Note: See TracBrowser for help on using the repository browser.