X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a41c655e85ee535e3ac20ac863d219611857ef2..5f4cd605aa4bb463999693b04ee3cd42eb6ec8c3:/include/wx/msw/frame.h diff --git a/include/wx/msw/frame.h b/include/wx/msw/frame.h index fbdad9c886..e8a0981bae 100644 --- a/include/wx/msw/frame.h +++ b/include/wx/msw/frame.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: wx/msw/frame.h -// Purpose: wxFrame class +// Purpose: wxFrameMSW class // Author: Julian Smart // Modified by: // Created: 01/02/97 @@ -16,18 +16,18 @@ #pragma interface "frame.h" #endif -class WXDLLEXPORT wxFrame : public wxFrameBase +class WXDLLEXPORT wxFrameMSW : public wxFrameBase { public: // construction - wxFrame() { Init(); } - wxFrame(wxWindow *parent, - wxWindowID id, - const wxString& title, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxFrameNameStr) + wxFrameMSW() { Init(); } + wxFrameMSW(wxWindow *parent, + wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE, + const wxString& name = wxFrameNameStr) { Init(); @@ -42,7 +42,7 @@ public: long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); - virtual ~wxFrame(); + virtual ~wxFrameMSW(); // implement base class pure virtuals virtual void Maximize(bool maximize = TRUE); @@ -137,9 +137,11 @@ protected: // helper void DetachMenuBar(); +#if wxUSE_MENUS_NATIVE // a plug in for MDI frame classes which need to do something special when // the menubar is set virtual void InternalSetMenuBar(); +#endif // wxUSE_MENUS_NATIVE // propagate our state change to all child frames void IconizeChildFrames(bool bIconize); @@ -184,8 +186,8 @@ private: WXHWND m_hwndToolTip; #endif // tooltips + DECLARE_DYNAMIC_CLASS(wxFrameMSW) DECLARE_EVENT_TABLE() - DECLARE_DYNAMIC_CLASS(wxFrame) }; #endif