diff dwt/widgets/Combo.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 07e8963537b7
line wrap: on
line diff
--- a/dwt/widgets/Combo.d	Mon Feb 11 04:05:55 2008 +0100
+++ b/dwt/widgets/Combo.d	Mon Feb 11 04:18:24 2008 +0100
@@ -1608,7 +1608,7 @@
  */
 public void setOrientation (int orientation) {
     checkWidget();
-    if (OS.IsWinCE) return;
+    static if (OS.IsWinCE) return;
     if (OS.WIN32_VERSION < OS.VERSION (4, 10)) return;
     int flags = DWT.RIGHT_TO_LEFT | DWT.LEFT_TO_RIGHT;
     if ((orientation & flags) is 0 || (orientation & flags) is flags) return;
@@ -2172,7 +2172,7 @@
     if ((style & DWT.SIMPLE) !is 0) {
         LRESULT result = super.WM_SIZE (wParam, lParam);
         if (OS.IsWindowVisible (handle)) {
-            if (OS.IsWinCE) {
+            static if (OS.IsWinCE) {
                 auto hwndText = OS.GetDlgItem (handle, CBID_EDIT);
                 if (hwndText !is null) OS.InvalidateRect (hwndText, null, true);
                 auto hwndList = OS.GetDlgItem (handle, CBID_LIST);