]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/evtloop.cpp
Output the extracted number from wxString::ToXXX() even if it returns false.
[wxWidgets.git] / src / msw / evtloop.cpp
index 3588564ed55f3f0e663d86502925173eff593837..6d8ecdd7c2d5bfc984a93de273dbe505da3eb4ac 100644 (file)
@@ -401,7 +401,7 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess)
             if ((eventsToProcess & wxEVT_CATEGORY_UI) == 0)
             {
                 // this msg is not going to be dispatched...
-                // however WM_PAINT is special: until there are damaged 
+                // however WM_PAINT is special: until there are damaged
                 // windows, Windows will keep sending it forever!
                 if (nPaintsReceived > 10)
                 {
@@ -430,9 +430,9 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess)
         switch (msg.message)
         {
 #if !defined(__WXWINCE__)
-                   case WM_NCMOUSEMOVE:
+            case WM_NCMOUSEMOVE:
 
-                       case WM_NCLBUTTONDOWN:
+            case WM_NCLBUTTONDOWN:
             case WM_NCLBUTTONUP:
             case WM_NCLBUTTONDBLCLK:
             case WM_NCRBUTTONDOWN:
@@ -565,16 +565,7 @@ void wxConsoleEventLoop::WakeUp()
 
 void wxConsoleEventLoop::ProcessMessage(WXMSG *msg)
 {
-    if ( msg->message == WM_TIMER )
-    {
-        TIMERPROC proc = (TIMERPROC)msg->lParam;
-        if ( proc )
-            (*proc)(NULL, 0, msg->wParam, 0);
-    }
-    else
-    {
-        ::DispatchMessage(msg);
-    }
+    ::DispatchMessage(msg);
 }
 
 bool wxConsoleEventLoop::Dispatch()