#pragma once namespace ActiveBasic{ namespace IDE{ namespace WindowComponents{ class MdiWindow : public CMDIFrameWindowImpl , public CUpdateUI , public CMessageFilter , public CIdleHandler { public: virtual BOOL PreTranslateMessage(MSG* pMsg){ if(CMDIFrameWindowImpl::PreTranslateMessage(pMsg)) return TRUE; // アクティブな子ウィンドウにメッセージフィルタの機会を与える HWND hWnd = MDIGetActive(); if(hWnd != NULL) return (BOOL)::SendMessage(hWnd, WM_FORWARDMSG, 0, (LPARAM)pMsg); return FALSE; } virtual BOOL OnIdle(){ UIUpdateToolBar(); UIUpdateStatusBar(); return FALSE; } BEGIN_UPDATE_UI_MAP( MdiWindow ) // エントリなし END_UPDATE_UI_MAP() }; }}}