Rev | Line | |
---|
[489] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | namespace ActiveBasic{ namespace IDE{ namespace WindowComponents{
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | class MdiWindow
|
---|
| 7 | : public CMDIFrameWindowImpl<MdiWindow>
|
---|
| 8 | , public CUpdateUI<MdiWindow>
|
---|
| 9 | , public CMessageFilter
|
---|
| 10 | , public CIdleHandler
|
---|
| 11 | {
|
---|
| 12 | public:
|
---|
| 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 |
|
---|
[629] | 31 | BEGIN_UPDATE_UI_MAP( MdiWindow )
|
---|
[489] | 32 | // エントリなし
|
---|
| 33 | END_UPDATE_UI_MAP()
|
---|
| 34 | };
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | }}}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.