// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "icon.h"
#endif
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, wxBITMAP_TYPE_ICO);
+}
+
wxIcon::~wxIcon()
{
}