X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c4f8f8d180afa03110f52eb95f9b083088f5c03..b668a73527cd08aae1321bfb1c604c9b96fffbed:/include/wx/msw/frame.h diff --git a/include/wx/msw/frame.h b/include/wx/msw/frame.h index 4294359921..5e161cd3ab 100644 --- a/include/wx/msw/frame.h +++ b/include/wx/msw/frame.h @@ -52,6 +52,8 @@ public: virtual void Restore(); virtual void SetMenuBar(wxMenuBar *menubar); virtual void SetIcon(const wxIcon& icon); + virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); + virtual bool IsFullScreen() const { return m_fsIsShowing; }; // implementation only from now on // ------------------------------- @@ -110,6 +112,10 @@ public: void SetToolTipCtrl(WXHWND hwndTT) { m_hwndToolTip = hwndTT; } #endif // tooltips + // a MSW only function which sends a size event to the window using its + // current size - this has an effect of refreshing the window layout + void SendSizeEvent(); + protected: // common part of all ctors void Init(); @@ -140,13 +146,35 @@ protected: // window proc for the frames long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); - bool m_iconized; + virtual bool IsMDIChild() const { return FALSE; } + + // is the frame currently iconized? + bool m_iconized; + + // should the frame be maximized when it will be shown? set by Maximize() + // when it is called while the frame is hidden + bool m_maximizeOnShow; + WXHICON m_defaultIcon; #if wxUSE_STATUSBAR static bool m_useNativeStatusBar; #endif // wxUSE_STATUSBAR + // the last focused child: we restore focus to it on activation + wxWindow *m_winLastFocused; + + // Data to save/restore when calling ShowFullScreen + long m_fsStyle; // Passed to ShowFullScreen + wxRect m_fsOldSize; + long m_fsOldWindowStyle; + int m_fsStatusBarFields; // 0 for no status bar + int m_fsStatusBarHeight; + int m_fsToolBarHeight; +// WXHMENU m_fsMenu; + bool m_fsIsMaximized; + bool m_fsIsShowing; + private: #if wxUSE_TOOLTIPS WXHWND m_hwndToolTip;