X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dfef5ac200277eb1943cde5c1beafa2f392ab88..f5e2134e5b3a59e4b63d6f27289b41e10ad1ca03:/src/msw/window.cpp?ds=sidebyside diff --git a/src/msw/window.cpp b/src/msw/window.cpp index d219c90534..e762e88e84 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1163,6 +1163,17 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const *exstyle |= WS_EX_DLGMODALFRAME; break; } + + // to make the dialog navigation work with the nested panels we must + // use this style but, unfortunately, it hangs NT4 in some situations + // so we shouldn't use it -- even though it means that keyboard accels + // in, e.g. wxWizard, don't work +#if 0 + if ( flags & wxTAB_TRAVERSAL ) + { + *exstyle |= WS_EX_CONTROLPARENT; + } +#endif // 0 } return style; @@ -3951,6 +3962,7 @@ void wxWindowMSW::InitMouseEvent(wxMouseEvent& event, event.SetTimestamp(s_currentMsg.time); event.m_eventObject = this; + event.SetId(GetId()); #if wxUSE_MOUSEEVENT_HACK m_lastMouseX = x;