Mercurial > projects > dwt-win
diff dwt/widgets/Spinner.d @ 117:25f88bf5a6df
Only one file was damaged
Backed out changeset 640928daee8c
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Feb 2008 04:18:24 +0100 |
parents | 640928daee8c |
children | 968367469b3e |
line wrap: on
line diff
--- a/dwt/widgets/Spinner.d Mon Feb 11 04:05:55 2008 +0100 +++ b/dwt/widgets/Spinner.d Mon Feb 11 04:18:24 2008 +0100 @@ -538,7 +538,7 @@ */ public int getSelection () { checkWidget (); - if (OS.IsWinCE) { + static if (OS.IsWinCE) { return OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { return OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -817,7 +817,7 @@ if (value is this.digits) return; this.digits = value; int pos; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -882,7 +882,7 @@ OS.SendMessage (hwndUpDown , OS.UDM_GETRANGE32, &min, null); if (value <= min) return; int pos; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -911,7 +911,7 @@ OS.SendMessage (hwndUpDown , OS.UDM_GETRANGE32, null, &max); if (value >= max) return; int pos; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -1277,7 +1277,7 @@ int value = getSelectionText (); if (value !is -1) { int pos; - if (OS.IsWinCE) { + static if (OS.IsWinCE) { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { pos = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -1310,7 +1310,7 @@ if (delta !is 0) { int value = getSelectionText (); if (value !is -1) { - if (OS.IsWinCE) { + static if (OS.IsWinCE) { value = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { value = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0); @@ -1340,7 +1340,7 @@ override LRESULT wmKillFocus (HWND hwnd, int wParam, int lParam) { int value = getSelectionText (); if (value is -1) { - if (OS.IsWinCE) { + static if (OS.IsWinCE) { value = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0) & 0xFFFF; } else { value = OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0);