X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63f7d5022e786be61c0226314dac98739f49a426..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/msw/combobox.h?ds=sidebyside diff --git a/include/wx/msw/combobox.h b/include/wx/msw/combobox.h index 8339b4cb0c..f656e081e8 100644 --- a/include/wx/msw/combobox.h +++ b/include/wx/msw/combobox.h @@ -82,7 +82,8 @@ public: virtual void SetValue(const wxString& value); virtual wxString GetStringSelection() const { return wxChoice::GetStringSelection(); } - + virtual void Popup() { MSWDoPopupOrDismiss(true); } + virtual void Dismiss() { MSWDoPopupOrDismiss(false); } virtual void SetSelection(int n) { wxChoice::SetSelection(n); } virtual void SetSelection(long from, long to) { wxTextEntry::SetSelection(from, to); } @@ -125,6 +126,7 @@ protected: #if wxUSE_TOOLTIPS virtual void DoSetToolTip(wxToolTip *tip); #endif + void MSWDoPopupOrDismiss(bool show); // this is the implementation of GetEditHWND() which can also be used when // we don't have the edit control, it simply returns NULL then