Changeset 246:fd9c62a2998e for dwt/widgets/Label.d
- Timestamp:
- 07/01/08 04:15:59 (6 months ago)
- Files:
-
- dwt/widgets/Label.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/widgets/Label.d
r241 r246 1 1 /******************************************************************************* 2 * Copyright (c) 2000, 200 7IBM Corporation and others.2 * Copyright (c) 2000, 2008 IBM Corporation and others. 3 3 * All rights reserved. This program and the accompanying materials 4 4 * are made available under the terms of the Eclipse Public License v1.0 … … 41 41 * do not specify a shadow style. 42 42 * </p> 43 * <dl>44 43 * <dl> 45 44 * <dt><b>Styles:</b></dt> … … 58 57 * within the DWT implementation. 59 58 * </p> 59 * 60 * @see <a href="http://www.eclipse.org/swt/snippets/#label">Label snippets</a> 61 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a> 62 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> 60 63 */ 61 64 public class Label : Control { … … 435 438 * fix is to draw the background in WM_ERASEBKGND. 436 439 */ 437 if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {440 if (OS.COMCTL32_MAJOR < 6) { 438 441 if (findImageControl () !is null) OS.InvalidateRect (handle, null, true); 439 442 } … … 481 484 * fix is to draw the background in WM_ERASEBKGND. 482 485 */ 483 if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {486 if (OS.COMCTL32_MAJOR < 6) { 484 487 if (findImageControl () !is null) { 485 488 drawBackground (cast(HANDLE)wParam); … … 553 556 */ 554 557 LRESULT result = super.wmColorChild (wParam, lParam); 555 if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {558 if (OS.COMCTL32_MAJOR < 6) { 556 559 int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); 557 560 if ((bits & OS.SS_OWNERDRAW) !is OS.SS_OWNERDRAW) {
