Catching up to new common class interfaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -822,17 +822,26 @@ bool wxTopLevelWindowOS2::ShowFullScreen(
|
||||
void wxTopLevelWindowOS2::SetIcon(
|
||||
const wxIcon& rIcon
|
||||
)
|
||||
{
|
||||
SetIcons(wxIconBundle(rIcon));
|
||||
} // end of wxTopLevelWindowOS2::SetIcon
|
||||
|
||||
void wxTopLevelWindowOS2::SetIcons(
|
||||
const wxIconBundle& rIcons
|
||||
)
|
||||
{
|
||||
//
|
||||
// This sets m_icon
|
||||
//
|
||||
wxTopLevelWindowBase::SetIcon(rIcon);
|
||||
wxTopLevelWindowBase::SetIcons(rIcons);
|
||||
|
||||
if (m_icon.Ok())
|
||||
const wxIcon& vIcon = rIcons.GetIcon(wxSize(32, 32));
|
||||
|
||||
if (vIcon.Ok() && vIcon.GetWidth() == 32 && vIcon.GetHeight() == 32)
|
||||
{
|
||||
::WinSendMsg( m_hFrame
|
||||
,WM_SETICON
|
||||
,(MPARAM)((HPOINTER)m_icon.GetHICON())
|
||||
,(MPARAM)((HPOINTER)vIcon.GetHICON())
|
||||
,NULL
|
||||
);
|
||||
::WinSendMsg( m_hFrame
|
||||
|
Reference in New Issue
Block a user