X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/584ad2a32fec156c6049145d7ece9a33213aea28..fa9666fbe69e76f57042b46ba2c8ad5b18a527b6:/include/wx/msw/choice.h diff --git a/include/wx/msw/choice.h b/include/wx/msw/choice.h index ab7016061f..5348fd5e26 100644 --- a/include/wx/msw/choice.h +++ b/include/wx/msw/choice.h @@ -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); @@ -96,10 +95,28 @@ protected: // MSW implementation virtual wxSize DoGetBestSize() const; + virtual void DoGetSize(int *w, int *h) const; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + 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();