diff dwt/widgets/Composite.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 07ed83d51a19
line wrap: on
line diff
--- a/dwt/widgets/Composite.d	Mon Feb 11 04:05:55 2008 +0100
+++ b/dwt/widgets/Composite.d	Mon Feb 11 04:18:24 2008 +0100
@@ -760,7 +760,7 @@
     if (threadId !is OS.GetCurrentThreadId ()) {
         if (processID is OS.GetCurrentProcessId ()) {
             if (display.msgHook is null) {
-                if (!OS.IsWinCE) {
+                static if (!OS.IsWinCE) {
                     //display.getMsgCallback = new Callback (display, "getMsgProc", 3);
                     //display.getMsgProc = display.getMsgCallback.getAddress ();
                     //if (display.getMsgProc is 0) error (DWT.ERROR_NO_MORE_CALLBACKS);
@@ -1137,7 +1137,7 @@
 
     /* Set the clipping bits */
     int oldBits = 0, newBits = 0;
-    if (!OS.IsWinCE) {
+    static if (!OS.IsWinCE) {
         oldBits = OS.GetWindowLong (handle, OS.GWL_STYLE);
         newBits = oldBits | OS.WS_CLIPSIBLINGS | OS.WS_CLIPCHILDREN;
         if (newBits !is oldBits) OS.SetWindowLong (handle, OS.GWL_STYLE, newBits);
@@ -1447,7 +1447,7 @@
     * does not redraw properly.  The fix is to detect this case and
     * redraw the non-client area.
     */
-    if (!OS.IsWinCE) {
+    static if (!OS.IsWinCE) {
         int cmd = wParam & 0xFFF0;
         switch (cmd) {
             case OS.SC_HSCROLL:
@@ -1502,7 +1502,7 @@
 }
 
 override LRESULT wmNotify (NMHDR* hdr, int wParam, int lParam) {
-    if (!OS.IsWinCE) {
+    static if (!OS.IsWinCE) {
         switch (hdr.code) {
             /*
             * Feature in Windows.  When the tool tip control is