Ignore wxTHICK_FRAME in wxWindow constructor: only relevant to frames and
dialogs, interferes with other window styles otherwise. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -162,7 +162,6 @@ WXHACCEL wxAcceleratorTable::GetHACCEL() const
|
|||||||
bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const
|
bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const
|
||||||
{
|
{
|
||||||
MSG *msg = (MSG *)wxmsg;
|
MSG *msg = (MSG *)wxmsg;
|
||||||
|
|
||||||
return Ok() && ::TranslateAccelerator(GetHwndOf(window), GetHaccel(), msg);
|
return Ok() && ::TranslateAccelerator(GetHwndOf(window), GetHaccel(), msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -304,9 +304,11 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id,
|
|||||||
DWORD msflags = 0;
|
DWORD msflags = 0;
|
||||||
if ( style & wxBORDER )
|
if ( style & wxBORDER )
|
||||||
msflags |= WS_BORDER;
|
msflags |= WS_BORDER;
|
||||||
|
/* Not appropriate for non-frame/dialog windows, and
|
||||||
|
may clash with other window styles.
|
||||||
if ( style & wxTHICK_FRAME )
|
if ( style & wxTHICK_FRAME )
|
||||||
msflags |= WS_THICKFRAME;
|
msflags |= WS_THICKFRAME;
|
||||||
|
*/
|
||||||
//msflags |= WS_CHILD /* | WS_CLIPSIBLINGS */ | WS_VISIBLE;
|
//msflags |= WS_CHILD /* | WS_CLIPSIBLINGS */ | WS_VISIBLE;
|
||||||
msflags |= WS_CHILD | WS_VISIBLE;
|
msflags |= WS_CHILD | WS_VISIBLE;
|
||||||
if ( style & wxCLIP_CHILDREN )
|
if ( style & wxCLIP_CHILDREN )
|
||||||
|
Reference in New Issue
Block a user