]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Changed wxGridCellAttr::HasAlignment to treat values of -1 as no
[wxWidgets.git] / src / msw / window.cpp
index 635b50885cae8f482d5ad5414ef113b20c781773..c238a8b21c1ae6578f18cb5279e6e31c811a3a7d 100644 (file)
@@ -990,7 +990,13 @@ void wxWindow::OnIdle(wxIdleEvent& event)
                 state |= MK_SHIFT;
             if ( wxIsCtrlDown() )
                 state |= MK_CONTROL;
-
+            if ( GetKeyState( VK_LBUTTON ) )
+                state |= MK_LBUTTON;
+            if ( GetKeyState( VK_MBUTTON ) )
+                state |= MK_MBUTTON;
+            if ( GetKeyState( VK_RBUTTON ) )
+                state |= MK_RBUTTON;
+  
             wxMouseEvent event(wxEVT_LEAVE_WINDOW);
             InitMouseEvent(event, pt.x, pt.y, state);