]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/window.h
split wxUSE_MDI from wxUSE_MDI_ARCHITECTURE (which is wxUSE_MDI + wxUSE_DOCVIEW)
[wxWidgets.git] / include / wx / univ / window.h
index dafa83279d496c5f23af6f33206452e8d9cbbba3..b352f7ff07e97f5ee47261792f5deb62ad8f9319 100644 (file)
@@ -55,14 +55,16 @@ public:
     // ctors and create functions
     // ---------------------------
 
-    wxWindow();
+    wxWindow() { Init(); }
 
     wxWindow(wxWindow *parent,
              wxWindowID id,
              const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize,
              long style = 0,
-             const wxString& name = wxPanelNameStr);
+             const wxString& name = wxPanelNameStr)
+        : wxWindowNative(parent, id, pos, size, style | wxCLIP_CHILDREN, name)
+        { Init(); }
 
     bool Create(wxWindow *parent,
                 wxWindowID id,
@@ -191,6 +193,9 @@ public:
     // we refresh the window when it is dis/enabled
     virtual bool Enable(bool enable = TRUE);
 
+    // should we use the standard control colours or not?
+    virtual bool ShouldInheritColours() const { return false; }
+
 protected:
     // common part of all ctors
     void Init();
@@ -204,7 +209,7 @@ protected:
 
     // event handlers
     void OnSize(wxSizeEvent& event);
-    void OnNcPaint(wxPaintEvent& event);
+    void OnNcPaint(wxNcPaintEvent& event);
     void OnPaint(wxPaintEvent& event);
     void OnErase(wxEraseEvent& event);
 
@@ -259,7 +264,7 @@ protected:
 
 #ifdef __WXMSW__
     // override MSWWindowProc() to process WM_NCHITTEST
-    long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+    WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
 #endif // __WXMSW__
 
 private: