Changeset 44 for trunk/src/user32


Ignore:
Timestamp:
Jun 7, 1999, 5:37:34 PM (26 years ago)
Author:
achimha
Message:

* empty log message *

Location:
trunk/src/user32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r4 r44  
    593593    CreateWindowProc                    @2000
    594594    GetOS2Callback__15Win32WindowProcFv @2001
     595
     596; Wine helper function
     597    GetSysColorPen              = _GetSysColorPen@4              @2002
  • trunk/src/user32/syscolor.cpp

    r4 r44  
    1 /* $Id: syscolor.cpp,v 1.1 1999-05-24 20:20:02 ktk Exp $ */
     1/* $Id: syscolor.cpp,v 1.2 1999-06-07 15:37:34 achimha Exp $ */
    22
    33/*
     
    4949    "3DLight", "192 192 192",        /* COLOR_3DLIGHT             */
    5050    "InfoText", "0 0 0",             /* COLOR_INFOTEXT            */
    51     "InfoBackground", "255 255 192"  /* COLOR_INFOBK              */
     51    "InfoBackground", "255 255 192", /* COLOR_INFOBK              */
     52    "AlternateButtonFace", "184 180 184",  /* COLOR_ALTERNATEBTNFACE */
     53    "HotTrackingColor", "0 0 255",         /* COLOR_HOTLIGHT */
     54    "GradientActiveTitle", "16 132 208",   /* COLOR_GRADIENTACTIVECAPTION */
     55    "GradientInactiveTitle", "184 180 184" /* COLOR_GRADIENTINACTIVECAPTION */
    5256};
    5357
    5458
    55 #define NUM_SYS_COLORS     (COLOR_INFOBK+1)
     59#define NUM_SYS_COLORS     (COLOR_GRADIENTINACTIVECAPTION+1)
    5660
    5761static HBRUSH SysColors[NUM_SYS_COLORS] = {0};
     62static HPEN   SysColorPens[NUM_SYS_COLORS] = {0};
    5863static BOOL   fColorInit = FALSE;
    5964
     
    6772    if (index < 0 || index >= NUM_SYS_COLORS) return;
    6873    SysColors[index] = color;
     74    /* set pen */
     75    if (SysColorPens[index]) DeleteObject(SysColorPens[index]);
     76    SysColorPens[index] = CreatePen(PS_SOLID, 1, color);
    6977    switch(index)
    7078    {
     
    175183        sysColorObjects.hbrushInfoBk = CreateSolidBrush( color );
    176184        break;
     185    case COLOR_ALTERNATEBTNFACE:
     186        DeleteObject(sysColorObjects.hbrushAlternateBtnFace);
     187        sysColorObjects.hbrushAlternateBtnFace = CreateSolidBrush(color);
     188        break;
     189    case COLOR_HOTLIGHT:
     190        DeleteObject(sysColorObjects.hbrushHotLight);
     191        sysColorObjects.hbrushHotLight = CreateSolidBrush(color);
     192        break;
     193    case COLOR_GRADIENTACTIVECAPTION:
     194        DeleteObject(sysColorObjects.hbrushGradientActiveCaption);
     195        sysColorObjects.hbrushGradientActiveCaption = CreateSolidBrush(color);
     196        break;
     197    case COLOR_GRADIENTINACTIVECAPTION:
     198        DeleteObject(sysColorObjects.hbrushGradientInactiveCaption);
     199        sysColorObjects.hbrushGradientInactiveCaption = CreateSolidBrush(color);
     200        break;
    177201    }
    178202}
     
    275299//******************************************************************************
    276300//******************************************************************************
     301/***********************************************************************
     302 * This function is new to the Wine lib -- it does not exist in
     303 * Windows. However, it is a natural complement for GetSysColorBrush
     304 * in the Win32 API and is needed quite a bit inside Wine.
     305 */
     306HPEN WIN32API GetSysColorPen(INT index)
     307{
     308    return SysColorPens[index];
     309}
     310//******************************************************************************
     311//******************************************************************************
  • trunk/src/user32/syscolor.h

    r4 r44  
    1 /* $Id: syscolor.h,v 1.1 1999-05-24 20:20:02 ktk Exp $ */
     1/* $Id: syscolor.h,v 1.2 1999-06-07 15:37:34 achimha Exp $ */
    22
    33/*
     
    1616#define COLOR_INFOTEXT          23
    1717#define COLOR_INFOBK            24
     18/* win98 colors */
     19#define COLOR_ALTERNATEBTNFACE         25  /* undocumented, constant's name unknown */
     20#define COLOR_HOTLIGHT                 26
     21#define COLOR_GRADIENTACTIVECAPTION    27
     22#define COLOR_GRADIENTINACTIVECAPTION  28
    1823
    1924#define COLOR_DESKTOP           COLOR_BACKGROUND
     
    5560    HBRUSH hbrushInfoText;         /* COLOR_INFOTEXT            */
    5661    HBRUSH hbrushInfoBk;           /* COLOR_INFOBK              */
     62    HBRUSH hbrushAlternateBtnFace; /* COLOR_ALTERNATEBTNFACE */
     63    HBRUSH hbrushHotLight;         /* COLOR_HOTLIGHT */
     64    HBRUSH hbrushGradientActiveCaption; /* COLOR_GRADIENTACTIVECAPTION */
     65    HBRUSH hbrushGradientInactiveCaption; /* COLOR_GRADIENTINACTIVECAPTION */
    5766
    5867    HPEN   hpenWindowFrame;        /* COLOR_WINDOWFRAME         */
  • trunk/src/user32/user32exp.def

    r4 r44  
    597597GetOS2Callback__15Win32WindowProcFv     @2001
    598598
    599 
     599_GetSysColorPen@4                       @2002
Note: See TracChangeset for help on using the changeset viewer.