Ignore:
Timestamp:
Dec 16, 2000, 4:42:12 PM (25 years ago)
Author:
sandervl
Message:

edit + static control fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/static.cpp

    r4512 r4800  
    1 /* $Id: static.cpp,v 1.20 2000-10-22 10:01:34 sandervl Exp $ */
     1/* $Id: static.cpp,v 1.21 2000-12-16 15:42:12 sandervl Exp $ */
    22/*
    33 * Static control
     
    99 * Corel version: 20000317
    1010 * (WINE version: 990923)
     11 *
     12 * SvL:
     13 * SS_REALSIZEIMAGE is supposed to prevent control resizing, but that doesn't
     14 * appear to happen in NT (although the SDK docs are very clear about this)
     15 * Need to figure out why. (not resizing messes up the bitmap control in
     16 * the Microsoft Visual C++ 4.2 install program)
     17 * Same thing happens with a very simply test app, so the installer
     18 * does nothing special.
     19 *
    1120 *
    1221 * Status:  complete
     
    103112    }
    104113
     114#if 1
     115    //SvL: Breaks MS Visual C++ install dialogs with static controls (no resize)
     116    if (!(dwStyle & (SS_CENTERIMAGE))) STATIC_ResizeWindow(hwnd,dwStyle,bmp.bmWidth,bmp.bmHeight);
     117#else
    105118    if (!(dwStyle & (SS_CENTERIMAGE | SS_REALSIZEIMAGE))) STATIC_ResizeWindow(hwnd,dwStyle,bmp.bmWidth,bmp.bmHeight);
     119#endif
    106120
    107121    if (ii.hbmColor) DeleteObject(ii.hbmColor);
     
    133147    hOldBitmap = infoPtr->hIcon;
    134148    infoPtr->hIcon = hBitmap;
     149#if 1
     150    //SvL: Breaks MS Visual C++ install dialogs with static controls (no resize)
     151    if (hBitmap && !(dwStyle & (SS_CENTERIMAGE)))
     152#else
    135153    if (hBitmap && !(dwStyle & (SS_CENTERIMAGE | SS_REALSIZEIMAGE)))
     154#endif
    136155    {
    137156      BITMAP bm;
Note: See TracChangeset for help on using the changeset viewer.