X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3307dddecfbac0041ec7b76b06ea95f4726f866..a141e01844d244c8d7c215d4a31530e23298fc73:/include/wx/msw/mdi.h diff --git a/include/wx/msw/mdi.h b/include/wx/msw/mdi.h index dde5cc7e37..90df1854c7 100644 --- a/include/wx/msw/mdi.h +++ b/include/wx/msw/mdi.h @@ -86,6 +86,7 @@ public: void OnSysColourChanged(wxSysColourChangedEvent& event); void OnSize(wxSizeEvent& event); + void OnIconized(wxIconizeEvent& event); bool HandleActivate(int state, bool minimized, WXHWND activate); bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control); @@ -103,6 +104,10 @@ protected: virtual WXHICON GetDefaultIcon() const; + // set the size of the MDI client window to match the frame size + void UpdateClientSize(); + + wxMDIClientWindow * m_clientWindow; wxMDIChildFrame * m_currentChild; wxMenu* m_windowMenu; @@ -191,7 +196,7 @@ protected: private: bool m_needsInitialShow; // Show must be called in idle time after Creation bool m_needsResize; // flag which tells us to artificially resize the frame - virtual void DetachMenuBar() ; + virtual void DetachMenuBar() ; DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS_NO_COPY(wxMDIChildFrame)