]> git.saurik.com Git - wxWidgets.git/commitdiff
removed unused local variable; converted tabs to spaces
authorDavid Surovell <davids@osafoundation.org>
Mon, 19 Dec 2005 03:51:34 +0000 (03:51 +0000)
committerDavid Surovell <davids@osafoundation.org>
Mon, 19 Dec 2005 03:51:34 +0000 (03:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/evtloop.cpp

index 7721d45905085d4f4ea45f177791ce805d25692b..252a3c8a841e9742e62955bafcedc6c483830639 100644 (file)
@@ -127,32 +127,31 @@ bool wxEventLoop::PreProcessMessage(WXMSG *msg)
     wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
     wxWindow *wnd;
 
-       wxWindow* parent = NULL;
-
-       // 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)
+    // 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)
     if ( !wndThis )
     {
-        while ( hwnd && ::GetWindowLong(hwnd, GWL_STYLE) & WS_CHILD )
+        while ( hwnd && (::GetWindowLong(hwnd, GWL_STYLE) & WS_CHILD ))
         {
             hwnd = ::GetParent(hwnd);
 
-                       // If the control has a wx parent, break and give the parent a chance
-                       // to process the window message
-                       wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
-                       if (wndThis != NULL)
-                               break;
+            // If the control has a wx parent, break and give the parent a chance
+            // to process the window message
+            wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
+            if (wndThis != NULL)
+                break;
         }
 
-               if ( !wndThis ){
-                       // 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
-                       // IsDialogMessage() to make TAB navigation in it work
-                       
-                       // NOTE: IsDialogMessage() just eats all the messages (i.e. returns true for
-                       // them) if we call it for the control itself
-                       return hwnd && ::IsDialogMessage(hwnd, msg) != 0;
-               }
+        if ( !wndThis )
+        {
+            // 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
+            // IsDialogMessage() to make TAB navigation in it work
+
+            // NOTE: IsDialogMessage() just eats all the messages (i.e. returns true for
+            // them) if we call it for the control itself
+            return hwnd && ::IsDialogMessage(hwnd, msg) != 0;
+        }
     }
 
     if ( !AllowProcessing(wndThis) )