]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/window.h
Decided that not doing methods for keyboard commands was not worth the
[wxWidgets.git] / include / wx / msw / window.h
index 74f5ec8e5b3485bbc18f424237935816305d8654..87d7ab80840d5118bcaac79aa54ba372dfece44e 100644 (file)
@@ -53,14 +53,18 @@ enum
 class WXDLLEXPORT wxWindowMSW : public wxWindowBase
 {
 public:
-    wxWindowMSW();
+    wxWindowMSW() { Init(); }
 
     wxWindowMSW(wxWindow *parent,
                 wxWindowID id,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = 0,
-                const wxString& name = wxPanelNameStr);
+                const wxString& name = wxPanelNameStr)
+    {
+        Init();
+        Create(parent, id, pos, size, style, name);
+    }
 
     virtual ~wxWindowMSW();
 
@@ -343,10 +347,10 @@ public:
     bool HandleSetCursor(WXHWND hWnd, short nHitTest, int mouseMsg);
 
     // Window procedure
-    virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+    virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
 
     // Calls an appropriate default window procedure
-    virtual long MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+    virtual WXLRESULT MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
 
     // message processing helpers
 
@@ -459,6 +463,9 @@ private:
     // list of disabled children before last call to our Disable()
     wxWindowList *m_childrenDisabled;
 
+    // number of calls to Freeze() minus number of calls to Thaw()
+    unsigned int m_frozenness;
+
     DECLARE_DYNAMIC_CLASS(wxWindowMSW)
     DECLARE_NO_COPY_CLASS(wxWindowMSW)
     DECLARE_EVENT_TABLE()