use WS_SYSMENU if wxCLOSE_BOX style is given, otherwise the close box doesn't appear
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,9 +221,11 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
|
||||
}
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
if ( style & wxSYSTEM_MENU )
|
||||
// notice that if wxCLOSE_BOX is specified we need to use WS_SYSMENU too as
|
||||
// otherwise the close box doesn't appear
|
||||
if ( style & (wxSYSTEM_MENU | wxCLOSE_BOX) )
|
||||
msflags |= WS_SYSMENU;
|
||||
#endif
|
||||
#endif // !__WXWINCE__
|
||||
|
||||
// NB: under CE these 2 styles are not supported currently, we should
|
||||
// call Minimize()/Maximize() "manually" if we want to support them
|
||||
|
Reference in New Issue
Block a user