From: Vadim Zeitlin Date: Sat, 17 Dec 2011 23:52:43 +0000 (+0000) Subject: Define wxBitmapComboBox::Insert(void* clientData) overload in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/05f5b3f745778d68aaee42919c266b5867fda984 Define wxBitmapComboBox::Insert(void* clientData) overload in wxMSW. This overload was declared in the header but not implemented, do add its definition too. Closes #13774. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/bmpcbox.cpp b/src/msw/bmpcbox.cpp index c2928c9657..73cce59d09 100644 --- a/src/msw/bmpcbox.cpp +++ b/src/msw/bmpcbox.cpp @@ -257,6 +257,16 @@ int wxBitmapComboBox::Insert(const wxString& item, return n; } +int wxBitmapComboBox::Insert(const wxString& item, const wxBitmap& bitmap, + unsigned int pos, void *clientData) +{ + OnAddBitmap(bitmap); + const int n = wxComboBox::Insert(item, pos, clientData); + if ( n != wxNOT_FOUND ) + DoSetItemBitmap(n, bitmap); + return n; +} + int wxBitmapComboBox::Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos, wxClientData *clientData) {