diff --git a/src/msw/window.cpp b/src/msw/window.cpp index bba5e56705..edc10844ea 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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