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:
Vadim Zeitlin
2003-06-21 13:39:40 +00:00
parent 75f7af39d1
commit aaf7ab431b
16 changed files with 224 additions and 44 deletions

View File

@@ -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()
{
}