X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea098413d0e9c3f794f43826137a636e229f26f9..4a36f6b0a2b6a9adb2bd0d144ad0ecbc97a41bce:/src/msw/toplevel.cpp diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 3704dcf8a8..1d50568724 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -982,15 +982,15 @@ void wxTopLevelWindowMSW::SetIcons(const wxIconBundle& icons) wxTopLevelWindowBase::SetIcons(icons); #if !defined(__WXMICROWIN__) - const wxIcon& sml = icons.GetIcon(16); - if( sml.Ok() && sml.GetWidth() == 16 && sml.GetHeight() == 16 ) + const wxIcon& sml = icons.GetIconOfExactSize(16); + if( sml.Ok() ) { ::SendMessage( GetHwndOf( this ), WM_SETICON, ICON_SMALL, (LPARAM)GetHiconOf(sml) ); } - const wxIcon& big = icons.GetIcon(32); - if( big.Ok() && big.GetWidth() == 32 && big.GetHeight() == 32 ) + const wxIcon& big = icons.GetIconOfExactSize(32); + if( big.Ok() ) { ::SendMessage( GetHwndOf( this ), WM_SETICON, ICON_BIG, (LPARAM)GetHiconOf(big) );