Mercurial > projects > dwt-win
diff dwt/widgets/Decorations.d @ 82:43c42c637c9c
First simple example works
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 06 Feb 2008 15:45:27 +0100 |
parents | 205350493476 |
children | 6f75fdfa1bcd |
line wrap: on
line diff
--- a/dwt/widgets/Decorations.d Wed Feb 06 15:12:11 2008 +0100 +++ b/dwt/widgets/Decorations.d Wed Feb 06 15:45:27 2008 +0100 @@ -1026,6 +1026,7 @@ case DWT.ICON: hSmallIcon = smallIcon.handle; break; + default: } } else { /* @@ -1052,6 +1053,7 @@ case DWT.ICON: hLargeIcon = largeIcon.handle; break; + default: } } OS.SendMessage (handle, OS.WM_SETICON, OS.ICON_BIG, hLargeIcon); @@ -1496,6 +1498,7 @@ return true; case OS.VK_F6: if (traverseDecorations (true)) return true; + default: } return false; } @@ -1504,6 +1507,7 @@ case OS.VK_F4: OS.PostMessage (shell.handle, OS.WM_CLOSE, 0, 0); return true; + default: } return false; } @@ -1610,6 +1614,7 @@ case Display.SWT_GETACCELCOUNT: if (hAccel is cast(HACCEL)-1) createAccelerators (); return msg is Display.SWT_GETACCELCOUNT ? nAccel : cast(int)hAccel; + default: } return super.windowProc (hwnd, msg, wParam, lParam); } @@ -1784,6 +1789,7 @@ newWidth = rect.width; newHeight = rect.height; break; + default: } changed = newWidth !is oldWidth || newHeight !is oldHeight; if (changed) { @@ -1816,6 +1822,7 @@ traverseDecorations (true); return LRESULT.ZERO; } + default: } } return result;