don't add WS_VISIBLE to all windows style (replaces patch 948992)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9a5dd1c33c
commit
af4954790b
@ -1116,8 +1116,11 @@ void wxWindowMSW::SetWindowStyleFlag(long flags)
|
||||
|
||||
WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
|
||||
{
|
||||
// translate the style
|
||||
WXDWORD style = WS_CHILD | WS_VISIBLE;
|
||||
// translate common wxWindows styles to Windows ones
|
||||
|
||||
// most of windows are child ones, those which are not (such as
|
||||
// wxTopLevelWindow) should remove WS_CHILD in their MSWGetStyle()
|
||||
WXDWORD style = WS_CHILD;
|
||||
|
||||
if ( flags & wxCLIP_CHILDREN )
|
||||
style |= WS_CLIPCHILDREN;
|
||||
|
Loading…
Reference in New Issue
Block a user