use wxIconBundle::GetIconOfExactSize() instead of duplicating its code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-07 23:54:12 +00:00
parent 9b5933bcbc
commit f605c2584f
2 changed files with 6 additions and 6 deletions

View File

@@ -1004,9 +1004,9 @@ void wxTopLevelWindowOS2::SetIcons(
//
wxTopLevelWindowBase::SetIcons(rIcons);
const wxIcon& vIcon = rIcons.GetIcon(32);
const wxIcon& vIcon = rIcons.GetIconOfExactSize(32);
if (vIcon.Ok() && vIcon.GetWidth() == 32 && vIcon.GetHeight() == 32)
if (vIcon.Ok())
{
::WinSendMsg( m_hFrame
,WM_SETICON