CMDIChildImpl Class
class CMDIChildImpl: public CFrameWindowImpl
MDI Child window implementationCMDIChildImpl includes the following member functions CMDIChildImpl, Create, and OnMdiActivate
Defined in: MdiWnd.h
Class Template Arguments
_Derived
The ultimately-derived class
int _nResource
Resource ID
_Traits = CFrameWinTraitsd
Window creation flags
_Base = CWindow
Window base class
_LayoutPlugin = CLayoutManager
Layout manager base class
_WindowMenuLocator = CWindowMenuLocator
Window menu locator
Comments
MDI applications are more complex than SDI applications because MDI applications have to be built to handle multiple open windows and documents at once. The MDI specification stipulates several kinds of windows including the main MDI Frame window CMDIFrameImpl, the MDI Client window CMDIClientWindow , and the MDI Child window (this class)SFL's CMDIChildImpl class manages the MDI child's menu, the WM_MDIACTIVATE message to set up that menu within the MDI frame, and the special steps involved in creating an MDI child window. CMDIChildImpl is usually used as a base class for MDI child windows within your application.
Class Members
Constructor
HWND Create( HWND hwndParent, RECT& rcPos, LPCTSTR lpszCaption = 0, DWORD dwStyle = 0, DWORD dwExStyle = 0, HMENU hMenu = 0, LPARAM lpCreateParam = 0 )
Create the MDI child window
LRESULT OnMdiActivate(UINT, WPARAM, LPARAM lParam, BOOL&)
Handle the WM_MDIACTIVATE message