added wxIconLocation; minor fixes to wxIcon on some platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,6 +85,19 @@ wxIcon::wxIcon(const wxString& iconfile,
|
||||
LoadFile(iconfile, flags, desiredWidth, desiredHeight);
|
||||
}
|
||||
|
||||
wxIcon::wxIcon(const wxIconLocation& loc)
|
||||
{
|
||||
// wxICOFileHandler accepts names in the format "filename;index"
|
||||
wxString fullname = loc.GetFileName();
|
||||
if ( loc.GetIndex() )
|
||||
{
|
||||
fullname << _T(';') << loc.GetIndex();
|
||||
}
|
||||
//else: 0 is default
|
||||
|
||||
LoadFile(fullname);
|
||||
}
|
||||
|
||||
wxIcon::~wxIcon()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user