X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df541b86f86d91d51af013e3f43b632a3a8a28d9..779e28da630ef9fba6441fb0bab01cd538a7e7bb:/src/msw/bmpcbox.cpp?ds=sidebyside diff --git a/src/msw/bmpcbox.cpp b/src/msw/bmpcbox.cpp index 3ad1855abf..73cce59d09 100644 --- a/src/msw/bmpcbox.cpp +++ b/src/msw/bmpcbox.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/msw/bmpcboxg.cpp +// Name: src/msw/bmpcbox.cpp // Purpose: wxBitmapComboBox // Author: Jaakko Salli // Created: 2008-04-06 @@ -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) {