]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
adjust the rectangle before calling DrawThemeBackground() (patch 1158282)
[wxWidgets.git] / src / msw / window.cpp
index d196f61203cb546c27cb20af3d87f821fe87b2a5..c332ba35effc6223edba8c3e93eb411442723db3 100644 (file)
@@ -5144,6 +5144,9 @@ bool wxGetKeyState(wxKeyCode key)
 {
     bool bVirtual;
 
+    wxASSERT_MSG(key != WXK_LBUTTON && key != WXK_RBUTTON && key !=
+        WXK_MBUTTON, wxT("can't use wxGetKeyState() for mouse buttons"));
+
 //High order with GetAsyncKeyState only available on WIN32
 #ifdef __WIN32__
     //If the requested key is a LED key, return