X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c0ea335c7b1aa4ebd8b3a79dfb4be9fb20eefdb..a35b27b14da8454a3d89d52dcf7d32212a2a5eeb:/include/wx/msw/frame.h?ds=sidebyside diff --git a/include/wx/msw/frame.h b/include/wx/msw/frame.h index 81f12ec2bc..325f0acc51 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 // ------------------------------- @@ -94,10 +96,6 @@ public: WXHMENU GetWinMenu() const { return m_hMenu; } - // Returns the origin of client area (may be different from (0,0) if the - // frame has a toolbar) - virtual wxPoint GetClientAreaOrigin() const; - // event handlers bool HandlePaint(); bool HandleSize(int x, int y, WXUINT flag); @@ -128,9 +126,6 @@ protected: virtual void DoSetClientSize(int width, int height); - virtual void DoClientToScreen(int *x, int *y) const; - virtual void DoScreenToClient(int *x, int *y) const; - // helper void DetachMenuBar(); @@ -146,6 +141,8 @@ protected: // window proc for the frames long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + + virtual bool IsMDIChild() const { return FALSE; } bool m_iconized; WXHICON m_defaultIcon; @@ -154,6 +151,20 @@ protected: 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;