]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/choice.h
mention which files should be changed when adding a new library in a few places where...
[wxWidgets.git] / include / wx / msw / choice.h
index ce9d5b58e2a69a4b6579b09b52e8366c2d21a76a..5348fd5e26e067c1a42f65e749c7cf1be292bd6a 100644 (file)
@@ -83,9 +83,8 @@ public:
 
     // MSW only
     virtual bool MSWCommand(WXUINT param, WXWORD id);
-    long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
-    virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
-            WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+    WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+    virtual WXHBRUSH MSWControlColor(WXHDC hDC);
 
 protected:
     virtual void DoMoveWindow(int x, int y, int width, int height);
@@ -101,8 +100,22 @@ protected:
                            int width, int height,
                            int sizeFlags = wxSIZE_AUTO);
 
-    // get the real height of the control
-    int GetVisibleHeight() const;
+    virtual bool MSWShouldPreProcessMessage(WXMSG *pMsg);
+
+    virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
+
+    // update the height of the drop down list to fit the number of items we
+    // have (without changing the visible height)
+    void UpdateVisibleHeight();
+
+    // create and initialize the control
+    bool CreateAndInit(wxWindow *parent, wxWindowID id,
+                       const wxPoint& pos,
+                       const wxSize& size,
+                       int n, const wxString choices[],
+                       long style,
+                       const wxValidator& validator,
+                       const wxString& name);
 
     // free all memory we have (used by Clear() and dtor)
     void Free();