Changeset 44 for trunk/src/user32
- Timestamp:
- Jun 7, 1999, 5:37:34 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r4 r44 593 593 CreateWindowProc @2000 594 594 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 ktkExp $ */1 /* $Id: syscolor.cpp,v 1.2 1999-06-07 15:37:34 achimha Exp $ */ 2 2 3 3 /* … … 49 49 "3DLight", "192 192 192", /* COLOR_3DLIGHT */ 50 50 "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 */ 52 56 }; 53 57 54 58 55 #define NUM_SYS_COLORS (COLOR_ INFOBK+1)59 #define NUM_SYS_COLORS (COLOR_GRADIENTINACTIVECAPTION+1) 56 60 57 61 static HBRUSH SysColors[NUM_SYS_COLORS] = {0}; 62 static HPEN SysColorPens[NUM_SYS_COLORS] = {0}; 58 63 static BOOL fColorInit = FALSE; 59 64 … … 67 72 if (index < 0 || index >= NUM_SYS_COLORS) return; 68 73 SysColors[index] = color; 74 /* set pen */ 75 if (SysColorPens[index]) DeleteObject(SysColorPens[index]); 76 SysColorPens[index] = CreatePen(PS_SOLID, 1, color); 69 77 switch(index) 70 78 { … … 175 183 sysColorObjects.hbrushInfoBk = CreateSolidBrush( color ); 176 184 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; 177 201 } 178 202 } … … 275 299 //****************************************************************************** 276 300 //****************************************************************************** 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 */ 306 HPEN 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 ktkExp $ */1 /* $Id: syscolor.h,v 1.2 1999-06-07 15:37:34 achimha Exp $ */ 2 2 3 3 /* … … 16 16 #define COLOR_INFOTEXT 23 17 17 #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 18 23 19 24 #define COLOR_DESKTOP COLOR_BACKGROUND … … 55 60 HBRUSH hbrushInfoText; /* COLOR_INFOTEXT */ 56 61 HBRUSH hbrushInfoBk; /* COLOR_INFOBK */ 62 HBRUSH hbrushAlternateBtnFace; /* COLOR_ALTERNATEBTNFACE */ 63 HBRUSH hbrushHotLight; /* COLOR_HOTLIGHT */ 64 HBRUSH hbrushGradientActiveCaption; /* COLOR_GRADIENTACTIVECAPTION */ 65 HBRUSH hbrushGradientInactiveCaption; /* COLOR_GRADIENTINACTIVECAPTION */ 57 66 58 67 HPEN hpenWindowFrame; /* COLOR_WINDOWFRAME */ -
trunk/src/user32/user32exp.def
r4 r44 597 597 GetOS2Callback__15Win32WindowProcFv @2001 598 598 599 599 _GetSysColorPen@4 @2002
Note:
See TracChangeset
for help on using the changeset viewer.