X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbea3ec6ae2cd8c8d477c6f04a09ca8a1fa1ab96..ccaf2891c9082773460c50c7eb7a910ea51e7003:/include/wx/msw/icon.h diff --git a/include/wx/msw/icon.h b/include/wx/msw/icon.h index 36ec8479e5..268677d21b 100644 --- a/include/wx/msw/icon.h +++ b/include/wx/msw/icon.h @@ -50,7 +50,7 @@ public: // from XPM data wxIcon(const char* const* data) { CreateIconFromXpm(data); } #ifdef wxNEEDS_CHARPP - wxIcon(char **data) { CreateIconFromXpm(wx_const_cast(const char* const*, data)); } + wxIcon(char **data) { CreateIconFromXpm(const_cast(data)); } #endif // from resource/file wxIcon(const wxString& name, @@ -65,6 +65,8 @@ public: wxBitmapType type = wxICON_DEFAULT_TYPE, int desiredWidth = -1, int desiredHeight = -1); + bool CreateFromHICON(WXHICON icon); + // implementation only from now on wxIconRefData *GetIconData() const { return (wxIconRefData *)m_refData; }