Mercurial > projects > dwt-win
diff dwt/widgets/Widget.d @ 109:0a02d6d3466b
merge
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Feb 2008 02:45:33 +0100 |
parents | 6f75fdfa1bcd a378481be65f |
children | a9a4ef66a7df |
line wrap: on
line diff
--- a/dwt/widgets/Widget.d Mon Feb 11 02:44:32 2008 +0100 +++ b/dwt/widgets/Widget.d Mon Feb 11 02:45:33 2008 +0100 @@ -385,7 +385,7 @@ } HDWP DeferWindowPos(HDWP hWinPosInfo, HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags){ - if (OS.IsWinCE) { + static if (OS.IsWinCE) { /* * Feature in Windows. On Windows CE, DeferWindowPos always causes * a WM_SIZE message, even when the new size is the same as the old @@ -1247,7 +1247,7 @@ } bool SetWindowPos (HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags) { - if (OS.IsWinCE) { + static if (OS.IsWinCE) { /* * Feature in Windows. On Windows CE, SetWindowPos() always causes * a WM_SIZE message, even when the new size is the same as the old @@ -1341,7 +1341,7 @@ * NOTE: This only happens on WM2003. Previous WinCE versions did * not support WM_CONTEXTMENU. */ - if (OS.IsWinCE) return null; + static if (OS.IsWinCE) return null; /* * Feature in Windows. When the user presses WM_NCRBUTTONUP, @@ -1424,7 +1424,7 @@ * both virtual and ASCII are a special case. */ int mapKey = 0; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { switch (wParam) { case OS.VK_BACK: mapKey = DWT.BS; break; case OS.VK_RETURN: mapKey = DWT.CR; break; @@ -1618,7 +1618,7 @@ Display display = this.display; /* Check for hardware keys */ - if (OS.IsWinCE) { + static if (OS.IsWinCE) { if (OS.VK_APP1 <= wParam && wParam <= OS.VK_APP6) { display.lastKey = display.lastAscii = 0; display.lastVirtual = display.lastNull = display.lastDead = false; @@ -1653,7 +1653,7 @@ * both virtual and ASCII are a special case. */ int mapKey = 0; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { switch (wParam) { case OS.VK_BACK: mapKey = DWT.BS; break; case OS.VK_RETURN: mapKey = DWT.CR; break; @@ -1772,7 +1772,7 @@ bool dragging = false, mouseDown = true; int count = display.getClickCount (DWT.MouseDown, 1, hwnd, lParam); if (count is 1 && (state & DRAG_DETECT) !is 0 && hooks (DWT.DragDetect)) { - if (!OS.IsWinCE) { + static if (!OS.IsWinCE) { /* * Feature in Windows. It's possible that the drag * operation will not be started while the mouse is @@ -1970,7 +1970,7 @@ Display display = this.display; int pos = OS.GetMessagePos (); if (pos !is display.lastMouse || display.captureChanged) { - if (!OS.IsWinCE) { + static if (!OS.IsWinCE) { bool trackMouse = (state & TRACK_MOUSE) !is 0; bool mouseEnter = hooks (DWT.MouseEnter) || display.filters (DWT.MouseEnter); bool mouseExit = hooks (DWT.MouseExit) || display.filters (DWT.MouseExit); @@ -2050,7 +2050,7 @@ /* Issue a paint event */ int result = 0; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { RECT rect; OS.GetUpdateRect (hwnd, &rect, false); result = callWindowProc (hwnd, OS.WM_PAINT, wParam, lParam); @@ -2313,7 +2313,7 @@ * both virtual and ASCII are a special case. */ int mapKey = 0; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { switch (wParam) { case OS.VK_BACK: mapKey = DWT.BS; break; case OS.VK_RETURN: mapKey = DWT.CR; break;