diff dwt/widgets/Table.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 521e2e00d10f
line wrap: on
line diff
--- a/dwt/widgets/Table.d	Mon Feb 11 04:05:55 2008 +0100
+++ b/dwt/widgets/Table.d	Mon Feb 11 04:18:24 2008 +0100
@@ -497,7 +497,7 @@
                 int dwExStyle = OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);
                 if ((dwExStyle & OS.LVS_EX_FULLROWSELECT) is 0) {
                     int bits = OS.LVS_EX_FULLROWSELECT;
-                    if (OS.IsWinCE) {
+                    static if (OS.IsWinCE) {
                         RECT rect;
                         bool damaged = cast(bool) OS.GetUpdateRect (handle, &rect, true);
                         OS.SendMessage (handle, OS.LVM_SETEXTENDEDLISTVIEWSTYLE, bits, bits);
@@ -536,7 +536,7 @@
                 int dwExStyle = OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);
                 if ((dwExStyle & OS.LVS_EX_FULLROWSELECT) !is 0) {
                     int bits = OS.LVS_EX_FULLROWSELECT;
-                    if (OS.IsWinCE) {
+                    static if (OS.IsWinCE) {
                         RECT rect;
                         bool damaged = cast(bool) OS.GetUpdateRect (handle, &rect, true);
                         OS.SendMessage (handle, OS.LVM_SETEXTENDEDLISTVIEWSTYLE, bits, 0);
@@ -3712,7 +3712,7 @@
             if (hooks (DWT.MeasureItem) || hooks (DWT.EraseItem) || hooks (DWT.PaintItem)) {
                 if (--drawCount is 0 /*&& OS.IsWindowVisible (handle)*/) {
                     OS.DefWindowProc (handle, OS.WM_SETREDRAW, 1, 0);
-                    if (OS.IsWinCE) {
+                    static if (OS.IsWinCE) {
                         auto hwndHeader = cast(HWND) OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0);
                         if (hwndHeader !is null) OS.InvalidateRect (hwndHeader, null, true);
                         OS.InvalidateRect (handle, null, true);
@@ -3740,7 +3740,7 @@
 void setCheckboxImageList (int width, int height, bool fixScroll) {
     if ((style & DWT.CHECK) is 0) return;
     int count = 4, flags = 0;
-    if (OS.IsWinCE) {
+    static if (OS.IsWinCE) {
         flags |= OS.ILC_COLOR;
     } else {
         auto hDC = OS.GetDC (handle);
@@ -4184,7 +4184,7 @@
                 state &= ~HIDDEN;
                 OS.ShowWindow (handle, OS.SW_HIDE);
             } else {
-                if (OS.IsWinCE) {
+                static if (OS.IsWinCE) {
                     OS.InvalidateRect (handle, null, false);
                     if (hwndHeader !is null) {
                         OS.InvalidateRect (hwndHeader, null, false);
@@ -4331,7 +4331,7 @@
             OS.SendMessage (handle, OS.LVM_SETCOLUMNWIDTH, 0, newWidth);
             if (redraw) {
                 OS.DefWindowProc (handle, OS.WM_SETREDRAW, 1, 0);
-                if (OS.IsWinCE) {
+                static if (OS.IsWinCE) {
                     auto hwndHeader = cast(HWND) OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0);
                     if (hwndHeader !is null) OS.InvalidateRect (hwndHeader, null, true);
                     OS.InvalidateRect (handle, null, true);
@@ -5081,7 +5081,7 @@
                 if (index !is -1) {
                     TableItem item = _getItem (index);
                     item.setChecked (!item.getChecked (), true);
-                    if (!OS.IsWinCE) {
+                    static if (!OS.IsWinCE) {
                         OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, handle, OS.OBJID_CLIENT, index + 1);
                     }
                 }
@@ -5278,7 +5278,7 @@
         if (index !is -1 && pinfo.flags is OS.LVHT_ONITEMSTATEICON) {
             TableItem item = _getItem (index);
             item.setChecked (!item.getChecked (), true);
-            if (!OS.IsWinCE) {
+            static if (!OS.IsWinCE) {
                 OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, handle, OS.OBJID_CLIENT, index + 1);
             }
         }
@@ -5314,7 +5314,7 @@
         if (index !is -1 && pinfo.flags is OS.LVHT_ONITEMSTATEICON) {
             TableItem item = _getItem (index);
             item.setChecked (!item.getChecked (), true);
-            if (!OS.IsWinCE) {
+            static if (!OS.IsWinCE) {
                 OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, handle, OS.OBJID_CLIENT, index + 1);
             }
         }