removed unused local variable; converted tabs to spaces
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,13 +127,11 @@ bool wxEventLoop::PreProcessMessage(WXMSG *msg)
|
|||||||
wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
|
wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
|
||||||
wxWindow *wnd;
|
wxWindow *wnd;
|
||||||
|
|
||||||
wxWindow* parent = NULL;
|
|
||||||
|
|
||||||
// this might happen if we're in a modeless dialog, or if a wx control has
|
// this might happen if we're in a modeless dialog, or if a wx control has
|
||||||
// children which themselves were not created by wx (i.e. wxActiveX control children)
|
// children which themselves were not created by wx (i.e. wxActiveX control children)
|
||||||
if ( !wndThis )
|
if ( !wndThis )
|
||||||
{
|
{
|
||||||
while ( hwnd && ::GetWindowLong(hwnd, GWL_STYLE) & WS_CHILD )
|
while ( hwnd && (::GetWindowLong(hwnd, GWL_STYLE) & WS_CHILD ))
|
||||||
{
|
{
|
||||||
hwnd = ::GetParent(hwnd);
|
hwnd = ::GetParent(hwnd);
|
||||||
|
|
||||||
@@ -144,7 +142,8 @@ bool wxEventLoop::PreProcessMessage(WXMSG *msg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !wndThis ){
|
if ( !wndThis )
|
||||||
|
{
|
||||||
// this may happen if the event occurred in a standard modeless dialog (the
|
// this may happen if the event occurred in a standard modeless dialog (the
|
||||||
// only example of which I know of is the find/replace dialog) - then call
|
// only example of which I know of is the find/replace dialog) - then call
|
||||||
// IsDialogMessage() to make TAB navigation in it work
|
// IsDialogMessage() to make TAB navigation in it work
|
||||||
|
Reference in New Issue
Block a user