-#if defined(__WIN32__) && !defined(__SC__)
- if ( desiredWidth != -1 && desiredHeight != -1 )
- {
- hicon = (HICON)::LoadImage(wxGetInstance(), name, IMAGE_ICON,
- desiredWidth, desiredHeight,
- LR_DEFAULTCOLOR);
- }
- else
-#endif // Win32
- {
- hicon = ::LoadIcon(wxGetInstance(), name);
- }
+ hIcon = ::WinLoadFileIcon( (PSZ)rName.c_str()
+ ,TRUE // load for private use
+ );