X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c8a980fc412792e64256724e02e9d387ee38e21..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/msw/choice.h?ds=sidebyside diff --git a/include/wx/msw/choice.h b/include/wx/msw/choice.h index c098da4a0b..fdc9fef5b8 100644 --- a/include/wx/msw/choice.h +++ b/include/wx/msw/choice.h @@ -27,6 +27,7 @@ class WXDLLEXPORT wxChoice : public wxChoiceBase public: // ctors wxChoice() { } + virtual ~wxChoice(); wxChoice(wxWindow *parent, wxWindowID id, @@ -65,18 +66,24 @@ 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); protected: + virtual void DoMoveWindow(int x, int y, int width, int height); virtual void DoSetItemClientData( int n, void* clientData ); virtual void* DoGetItemClientData( int n ) const; virtual void DoSetItemClientObject( int n, wxClientData* clientData ); virtual wxClientData* DoGetItemClientObject( int n ) const; // MSW implementation - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + + // free all memory we have (used by Clear() and dtor) + void Free(); }; #endif // _WX_CHOICE_H_