]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
more long/double to int conversion warnings from HP-UX logs fixed
[wxWidgets.git] / src / msw / window.cpp
index f2c9d0594e257c93ca248e56f2934824704f6490..edc10844eab053ab6d65b144762fd378d49de026 100644 (file)
@@ -89,7 +89,7 @@
 #endif
 
 #if !defined(__GNUWIN32_OLD__) && !defined(__TWIN32__)
-    #ifndef __WIN95__
+    #ifdef __WIN95__
         #include <commctrl.h>
     #endif
 #else // broken compiler
@@ -130,8 +130,8 @@ wxWindow *wxFindWinFromHandle(WXHWND hWnd);
 static void TranslateKbdEventToMouse(wxWindow *win, int *x, int *y, WPARAM *flags);
 
 // get the current state of SHIFT/CTRL keys
-static inline bool IsShiftDown() { return GetKeyState(VK_SHIFT)& 0x100 != 0; }
-static inline bool IsCtrlDown() { return GetKeyState(VK_CONTROL)& 0x100 != 0; }
+static inline bool IsShiftDown() { return (GetKeyState(VK_SHIFT) & 0x100) != 0; }
+static inline bool IsCtrlDown() { return (GetKeyState(VK_CONTROL) & 0x100) != 0; }
 
 // ---------------------------------------------------------------------------
 // event tables