X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da89830af414f55a37a211293cdb81958d478aa6..7d40f0a500faebf846c99b992088b17e65c7d4e8:/include/wx/msw/choice.h diff --git a/include/wx/msw/choice.h b/include/wx/msw/choice.h index 5ddb312b11..d17e1c655d 100644 --- a/include/wx/msw/choice.h +++ b/include/wx/msw/choice.h @@ -66,6 +66,8 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr); + virtual bool Show(bool show = true); + virtual void SetLabel(const wxString& label); virtual unsigned int GetCount() const; @@ -77,6 +79,14 @@ public: virtual wxString GetString(unsigned int n) const; virtual void SetString(unsigned int n, const wxString& s); + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + // MSW only virtual bool MSWCommand(WXUINT param, WXWORD id); WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); @@ -116,6 +126,9 @@ protected: int width, int height, int sizeFlags = wxSIZE_AUTO); + // Show or hide the popup part of the control. + void MSWDoPopupOrDismiss(bool show); + // update the height of the drop down list to fit the number of items we // have (without changing the visible height) void MSWUpdateDropDownHeight();