git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41140
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxSize wxGetHiconSize(HICON WXUNUSED_IN_WINCE(hicon))
{
wxSize wxGetHiconSize(HICON WXUNUSED_IN_WINCE(hicon))
{
- // default icon size on this hardware
- // usually 32x32 but can be other (smaller) on pocket devices
- wxSize size(::GetSystemMetrics(SM_CXICON), ::GetSystemMetrics(SM_CYICON));
{
ICONINFO info;
if ( !::GetIconInfo(hicon, &info) )
{
ICONINFO info;
if ( !::GetIconInfo(hicon, &info) )
::DeleteObject(info.hbmColor);
}
}
::DeleteObject(info.hbmColor);
}
}
+
+ if ( !size.x )
+#endif // !__WXWINCE__
+ {
+ // use default icon size on this hardware
+ size.x = ::GetSystemMetrics(SM_CXICON);
+ size.y = ::GetSystemMetrics(SM_CYICON);
+ }