if ( !title.empty() )
{
- ::SetWindowText(GetHwnd(), title);
+ ::SetWindowText(GetHwnd(), title.wx_str());
}
SubclassWin(m_hWnd);
exflags |= WS_EX_LAYOUTRTL;
#endif
- return MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags);
+ return MSWCreate(wxCanvasClassName, title.wx_str(), pos, sz, flags, exflags);
}
bool wxTopLevelWindowMSW::Create(wxWindow *parent,
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) );