Add support for loading wxIconBundle from MS Windows resource

This commit is contained in:
pbfordev
2017-05-18 22:51:01 +02:00
parent 2893f894ab
commit 062f7c4137
3 changed files with 114 additions and 0 deletions

View File

@@ -68,6 +68,18 @@ public:
*/
wxIconBundle(const wxIcon& icon);
/**
Initializes the bundle with all sizes of a group icon with @a resourceName
stored as an MS Windows resource in @a module. When @a module is 0, the current
instance is used.
@see AddIcon(const wxString&, WXHINSTANCE)
@onlyfor{wxmsw}
@since 3.1.1
*/
wxIconBundle(const wxString& resourceName, WXHINSTANCE module);
/**
Copy constructor.
*/
@@ -98,6 +110,15 @@ public:
*/
void AddIcon(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY);
/**
Loads all sizes of a group icon with @a resourceName stored as an MS Windows
resource in @a module. When @a module is 0, the current instance is used.
@onlyfor{wxmsw}
@since 3.1.1
*/
void AddIcon(const wxString& resourceName, WXHINSTANCE module);
/**
Adds the icon to the collection; if the collection already
contains an icon with the same width and height, it is