comparison dwt/widgets/Group.d @ 249:b3dbd786541a

Fix: compile errors
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 17:23:35 +0200
parents fd9c62a2998e
children
comparison
equal deleted inserted replaced
247:41a9fce66f7f 249:b3dbd786541a
19 import dwt.graphics.GC; 19 import dwt.graphics.GC;
20 import dwt.graphics.Point; 20 import dwt.graphics.Point;
21 import dwt.graphics.Rectangle; 21 import dwt.graphics.Rectangle;
22 import dwt.internal.win32.OS; 22 import dwt.internal.win32.OS;
23 import dwt.widgets.Composite; 23 import dwt.widgets.Composite;
24 import dwt.widgets.Control;
24 25
25 import dwt.dwthelper.utils; 26 import dwt.dwthelper.utils;
26 27
27 /** 28 /**
28 * Instances of this class provide an etched border 29 * Instances of this class provide an etched border
318 wchar mnemonic = findMnemonic (getText ()); 319 wchar mnemonic = findMnemonic (getText ());
319 if (mnemonic is '\0') return false; 320 if (mnemonic is '\0') return false;
320 return CharacterToUpper (key) is CharacterToUpper (mnemonic); 321 return CharacterToUpper (key) is CharacterToUpper (mnemonic);
321 } 322 }
322 323
323 void printWidget (int /*long*/ hwnd, GC gc) { 324 void printWidget (HWND hwnd, GC gc) {
324 /* 325 /*
325 * Bug in Windows. For some reason, PrintWindow() fails 326 * Bug in Windows. For some reason, PrintWindow() fails
326 * when it is called on a push button. The fix is to 327 * when it is called on a push button. The fix is to
327 * detect the failure and use WM_PRINT instead. Note 328 * detect the failure and use WM_PRINT instead. Note
328 * that WM_PRINT cannot be used all the time because it 329 * that WM_PRINT cannot be used all the time because it
329 * fails for browser controls when the browser has focus. 330 * fails for browser controls when the browser has focus.
330 */ 331 */
331 int /*long*/ hDC = gc.handle; 332 auto hDC = gc.handle;
332 if (!OS.PrintWindow (hwnd, hDC, 0)) { 333 if (!OS.PrintWindow (hwnd, hDC, 0)) {
333 /* 334 /*
334 * Bug in Windows. For some reason, WM_PRINT when called 335 * Bug in Windows. For some reason, WM_PRINT when called
335 * with PRF_CHILDREN will not draw the tool bar divider 336 * with PRF_CHILDREN will not draw the tool bar divider
336 * for tool bar children that do not have CCS_NODIVIDER. 337 * for tool bar children that do not have CCS_NODIVIDER.