]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/frame.h
A fix for attribrute sorting, but it's still broken if there are
[wxWidgets.git] / include / wx / os2 / frame.h
index 23785ee564fd212b7ec437b99247ae366242b47e..ed2be613806a2d2626be6d43f13b653d6718a846 100644 (file)
 //
 #include "wx/os2/wxOs2.h"
 
-class WXDLLEXPORT wxFrame : public wxFrameBase
+class WXDLLEXPORT wxFrameOS2 : public wxFrameBase
 {
 public:
     // construction
-    wxFrame() { Init(); }
-    wxFrame( wxWindow*       pParent
-            ,wxWindowID      vId
-            ,const wxString& rsTitle
-            ,const wxPoint&  rPos = wxDefaultPosition
-            ,const wxSize&   rSize = wxDefaultSize
-            ,long            lStyle = wxDEFAULT_FRAME_STYLE
-            ,const wxString& rsName = wxFrameNameStr
-           )
+    wxFrameOS2() { Init(); }
+    wxFrameOS2( wxWindow*       pParent
+               ,wxWindowID      vId
+               ,const wxString& rsTitle
+               ,const wxPoint&  rPos = wxDefaultPosition
+               ,const wxSize&   rSize = wxDefaultSize
+               ,long            lStyle = wxDEFAULT_FRAME_STYLE
+               ,const wxString& rsName = wxFrameNameStr
+              )
     {
         Init();
 
@@ -45,7 +45,7 @@ public:
                 ,const wxString& rsName = wxFrameNameStr
                );
 
-    virtual ~wxFrame();
+    virtual ~wxFrameOS2();
 
     // implement base class pure virtuals
     virtual void Maximize(bool bMaximize = TRUE);
@@ -178,10 +178,13 @@ protected:
     // helper
     void         DetachMenuBar(void);
 
+#if wxUSE_MENUS_NATIVE
+    // perform MSW-specific action when menubar is changed
+    virtual void AttachMenuBar(wxMenuBar* pMenubar);
     // a plug in for MDI frame classes which need to do something special when
     // the menubar is set
     virtual void InternalSetMenuBar(void);
-
+#endif
     // propagate our state change to all child frames
     void IconizeChildFrames(bool bIconize);
 
@@ -242,7 +245,6 @@ private:
     SWP                             m_vSwpToolBar;
 
     DECLARE_EVENT_TABLE()
-    DECLARE_DYNAMIC_CLASS(wxFrame)
 };
 
 #endif