]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
Reworked Frame class
[wxWidgets.git] / include / wx / msw / private.h
index 6ed5fcb913878f500591ef07ea02d031327c9bd2..2a27a0287d7f98fede1a2576a7d030b4de965e83 100644 (file)
@@ -256,6 +256,17 @@ extern HBITMAP wxInvertMask(HBITMAP hbmpMask, int w = 0, int h = 0);
     #define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
 #endif // GET_X_LPARAM
 
+// get the current state of SHIFT/CTRL keys
+inline bool wxIsShiftDown()
+{
+    return (::GetKeyState(VK_SHIFT) & 0x100) != 0;
+}
+
+inline bool wxIsCtrlDown()
+{
+    return (::GetKeyState(VK_CONTROL) & 0x100) != 0;
+}
+
 // ---------------------------------------------------------------------------
 // small helper classes
 // ---------------------------------------------------------------------------