Refactored the previous commit regarding wxIconBundle support for icons stored MS Windows resources.

This commit is contained in:
pbfordev
2017-05-20 08:43:50 +02:00
parent 062f7c4137
commit 944f3dffd2
4 changed files with 113 additions and 64 deletions

View File

@@ -58,7 +58,7 @@ public:
// initializes the bundle with a single icon
wxIconBundle(const wxIcon& icon);
#ifdef __WINDOWS__
#if defined( __WINDOWS__) && wxUSE_ICO_CUR
// initializes the bundle with the icons from a group icon stored as an MS Windows resource
wxIconBundle(const wxString& resourceName, WXHINSTANCE module);
#endif
@@ -75,7 +75,7 @@ public:
void AddIcon(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY);
#endif // wxUSE_STREAMS && wxUSE_IMAGE
#ifdef __WINDOWS__
#if defined( __WINDOWS__) && wxUSE_ICO_CUR
// loads all the icons from a group icon stored in an MS Windows resource
void AddIcon(const wxString& resourceName, WXHINSTANCE module);
#endif