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

Last change on this file since 829 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: 818 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.