Show
Ignore:
Timestamp:
07/01/08 04:15:59 (6 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Updater SWT 3.4M7 to 3.4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/Label.d

    r241 r246  
    11/******************************************************************************* 
    2  * Copyright (c) 2000, 2007 IBM Corporation and others. 
     2 * Copyright (c) 2000, 2008 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
    44 * are made available under the terms of the Eclipse Public License v1.0 
     
    4141 * do not specify a shadow style. 
    4242 * </p> 
    43  * <dl> 
    4443 * <dl> 
    4544 * <dt><b>Styles:</b></dt> 
     
    5857 * within the DWT implementation. 
    5958 * </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> 
    6063 */ 
    6164public class Label : Control { 
     
    435438    * fix is to draw the background in WM_ERASEBKGND. 
    436439    */ 
    437     if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { 
     440    if (OS.COMCTL32_MAJOR < 6) { 
    438441        if (findImageControl () !is null) OS.InvalidateRect (handle, null, true); 
    439442    } 
     
    481484    * fix is to draw the background in WM_ERASEBKGND. 
    482485    */ 
    483     if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { 
     486    if (OS.COMCTL32_MAJOR < 6) { 
    484487        if (findImageControl () !is null) { 
    485488            drawBackground (cast(HANDLE)wParam); 
     
    553556    */ 
    554557    LRESULT result = super.wmColorChild (wParam, lParam); 
    555     if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { 
     558    if (OS.COMCTL32_MAJOR < 6) { 
    556559        int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); 
    557560        if ((bits & OS.SS_OWNERDRAW) !is OS.SS_OWNERDRAW) {