]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
revert
[wxWidgets.git] / src / msw / window.cpp
index c6dee1ec13af5e64f9996f86202ed5937edaede1..081a98761b990e45d863f055b98d794235c34ca4 100644 (file)
@@ -2400,7 +2400,8 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
                                         wParam);
             break;
 
-#ifndef __WXWINCE__
+            // Seems to be broken currently
+#if 0 // ndef __WXWINCE__
         case WM_MOUSELEAVE:
            {
             wxASSERT_MSG( !m_mouseInWindow, wxT("the mouse should be in a window to generate this event!") );
@@ -5056,6 +5057,18 @@ int wxCharCodeWXToMSW(int id, bool *isVirtual)
     return keySym;
 }
 
+bool wxGetKeyState(wxKeyCode key)
+{
+    bool bVirtual;
+    int vkey = wxCharCodeWXToMSW(key, &bVirtual);
+    
+    //there aren't WXK_ macros for non-virtual key codes
+    if (bVirtual == false)
+        return false;
+
+    return GetKeyState(vkey) < 0;
+}
+
 wxWindow *wxGetActiveWindow()
 {
     HWND hWnd = GetActiveWindow();