WinCE fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-20 11:11:46 +00:00
parent 422d0ff0be
commit 7010702f63
8 changed files with 36 additions and 24 deletions

View File

@@ -585,7 +585,10 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
wxSize wxGetHiconSize(HICON hicon)
{
wxSize size(32, 32); // default
// default icon size on this hardware
// usually 32x32 but can be other (smaller) on pocket devices
wxSize size(::GetSystemMetrics(SM_CXICON), ::GetSystemMetrics(SM_CYICON));
#ifndef __WXWINCE__
if ( hicon && wxGetOsVersion() != wxWIN32S )
{
@@ -611,6 +614,8 @@ wxSize wxGetHiconSize(HICON hicon)
::DeleteObject(info.hbmColor);
}
}
#else
wxUnusedVar(hicon);
#endif
return size;
}