// private functions
// ----------------------------------------------------------------------------
-static wxSize GetHiconSize(HICON hicon);
#endif
// __MICROWIN__
if ( !hicon )
{
- // take any (the first one) icon from the file by default
- hicon = ::ExtractIcon(wxGetInstance(), nameReal, 0 /* first */);
+ // take any size icon from the file by index
+ hicon = ::ExtractIcon(wxGetInstance(), nameReal, iconIndex);
}
if ( !hicon )
return FALSE;
}
- size = GetHiconSize(hicon);
+ size = wxGetHiconSize(hicon);
#else // Win16
HICON hicon = ReadIconFile((wxChar *)name.c_str(),
wxGetInstance(),
}
}
- wxSize size = GetHiconSize(hicon);
+ wxSize size = wxGetHiconSize(hicon);
icon->SetSize(size.x, size.y);
icon->SetHICON((WXHICON)hicon);
// private functions
// ----------------------------------------------------------------------------
-static wxSize GetHiconSize(HICON hicon)
+wxSize wxGetHiconSize(HICON hicon)
{
wxSize size(32, 32); // default