Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

syscolor.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "user32.h"
#include "syscolor.h"
#include "options.h"
#include "oslibwin.h"
#include "dbglocal.h"

Include dependency graph for syscolor.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define DBG_LOCALLOG   DBG_syscolor
#define CTLCOLOR_MAX   CTLCOLOR_STATIC
#define NUM_OPEN32_SYSCOLORS   21
#define NUM_SYS_COLORS   (COLOR_GRADIENTINACTIVECAPTION+1)
#define MAKE_SOLID(color)   (PALETTEINDEX(GetNearestPaletteIndex(STOCK_DEFAULT_PALETTE,(color))))

Functions

void SYSCOLOR_SetColor (int index, COLORREF color)
void SYSCOLOR_Load (void)
void SYSCOLOR_Save (void)
void SYSCOLOR_Init (int fOverride)
COLORREF WIN32API GetSysColor (INT nIndex)
BOOL WIN32API SetSysColors (INT nChanges, const INT *lpSysColor, const COLORREF *lpColorValues)
HBRUSH WIN32API GetSysColorBrush (int nIndex)
HBRUSH WIN32API GetOS2ColorBrush (int nIndex)
HPEN WIN32API GetSysColorPen (INT index)
INT SYSCOLOR_GetLastColor (VOID)
INT SYSCOLOR_GetNumColors (VOID)
BOOL SYSCOLOR_GetUseWinColors (VOID)
HBRUSH WIN32API GetPattern55AABrush (void)
HBITMAP WIN32API GetPattern55AABitmap (void)
HBRUSH WIN32API GetControlBrush (HWND hwnd, HDC hdc, DWORD ctlType)
BOOL WIN32API IsSystemPen (HPEN hPen)
BOOL WIN32API IsSystemBrush (HBRUSH hBrush)

Variables

BOOL USEWINCOLORS = 1
COLORREF SysColors [(COLOR_GRADIENTINACTIVECAPTION+1)]
char * ColorNames [(COLOR_GRADIENTINACTIVECAPTION+1)]
HPEN SysColorPens [(COLOR_GRADIENTINACTIVECAPTION+1)] = {0}
HBRUSH SysColorBrushes [(COLOR_GRADIENTINACTIVECAPTION+1)] = {0}
BOOL fColorInit = FALSE
const WORD wPattern55AA []
HBRUSH hPattern55AABrush = 0
HBITMAP hPattern55AABitmap = 0
HBRUSH OS2SysColorBrush [41L] = {0}


Define Documentation

#define DBG_LOCALLOG   DBG_syscolor
 

Definition at line 28 of file syscolor.cpp.

#define CTLCOLOR_MAX   CTLCOLOR_STATIC
 

Definition at line 31 of file syscolor.cpp.

#define NUM_OPEN32_SYSCOLORS   21
 

Definition at line 34 of file syscolor.cpp.

#define NUM_SYS_COLORS   (COLOR_GRADIENTINACTIVECAPTION+1)
 

Definition at line 36 of file syscolor.cpp.

#define MAKE_SOLID color       (PALETTEINDEX(GetNearestPaletteIndex(STOCK_DEFAULT_PALETTE,(color))))
 

Definition at line 113 of file syscolor.cpp.


Function Documentation

void SYSCOLOR_SetColor int    index,
COLORREF    color
[static]
 

Definition at line 125 of file syscolor.cpp.

Referenced by SYSCOLOR_Init(), and SetSysColors().

void SYSCOLOR_Load void   
 

Definition at line 138 of file syscolor.cpp.

Referenced by SYSCOLOR_Init().

void SYSCOLOR_Save void   
 

Definition at line 157 of file syscolor.cpp.

Referenced by cleanupUser32().

void SYSCOLOR_Init int    fOverride = -1
 

Definition at line 178 of file syscolor.cpp.

COLORREF WIN32API GetSysColor INT    nIndex
 

Definition at line 200 of file syscolor.cpp.

Referenced by BUTTON_DrawPushButton(), CBPaintText(), COMBO_PrepareColors(), DIB_FixColorsToLoadflags(), DrawDisabledText(), DrawFocusRect(), EDIT_Draw(), EDIT_PaintText(), GB_Paint(), ICONTITLE_Paint(), LISTBOX_Draw(), LISTBOX_DrawItem(), LISTBOX_RepaintItem(), MDI_AugmentFrameMenu(), MENU_DrawMenuItem(), OB_Paint(), STATIC_Create(), STATIC_PaintTextfn(), STATIC_SysColorChange(), UITOOLS95_DrawFrameCaption(), and UITOOLS_DrawCheckedRect().

BOOL WIN32API SetSysColors INT    nChanges,
const INT *    lpSysColor,
const COLORREF *    lpColorValues
 

Definition at line 220 of file syscolor.cpp.

HBRUSH WIN32API GetSysColorBrush int    nIndex
 

Definition at line 254 of file syscolor.cpp.

Referenced by BUTTON_DrawPushButton(), BUTTON_Register(), CBPaintText(), COMBO_PrepareColors(), DIALOG_Register(), FillRect(), ICONTITLE_Paint(), MENU_DrawMenuBar(), MENU_DrawMenuItem(), MENU_DrawPopupMenu(), MENU_TrackMouseMenuBar_MouseMove(), SCROLL_DrawInterior(), SCROLL_DrawScrollBar(), UITOOLS95_DFC_ButtonCheck(), UITOOLS95_DFC_ButtonPush(), UITOOLS95_DFC_ButtonRadio(), UITOOLS95_DrawDiagEdge(), UITOOLS95_DrawFrameCaption(), UITOOLS95_DrawFrameScroll(), UITOOLS95_DrawRectEdge(), and UITOOLS_DrawCheckedRect().

HBRUSH WIN32API GetOS2ColorBrush int    nIndex
 

Definition at line 272 of file syscolor.cpp.

HPEN WIN32API GetSysColorPen INT    index
 

Definition at line 294 of file syscolor.cpp.

Referenced by BUTTON_DrawPushButton(), MENU_DrawMenuBar(), SCROLL_DrawInterior(), SCROLL_DrawSizeBox(), UITOOLS95_DFC_ButtonCheck(), UITOOLS95_DFC_ButtonRadio(), UITOOLS95_DrawDiagEdge(), UITOOLS95_DrawFrameCaption(), UITOOLS95_DrawFrameScroll(), and UITOOLS95_DrawRectEdge().

INT SYSCOLOR_GetLastColor VOID   
 

Definition at line 306 of file syscolor.cpp.

INT SYSCOLOR_GetNumColors VOID   
 

Definition at line 312 of file syscolor.cpp.

BOOL SYSCOLOR_GetUseWinColors VOID   
 

Definition at line 318 of file syscolor.cpp.

HBRUSH WIN32API GetPattern55AABrush void   
 

Definition at line 325 of file syscolor.cpp.

Referenced by Paint_DrawState(), and UITOOLS_DrawCheckedRect().

HBITMAP WIN32API GetPattern55AABitmap void   
 

Definition at line 334 of file syscolor.cpp.

Referenced by GetPattern55AABrush().

HBRUSH WIN32API GetControlBrush HWND    hwnd,
HDC    hdc,
DWORD    ctlType
 

Definition at line 342 of file syscolor.cpp.

BOOL WIN32API IsSystemPen HPEN    hPen
 

Definition at line 358 of file syscolor.cpp.

BOOL WIN32API IsSystemBrush HBRUSH    hBrush
 

Definition at line 369 of file syscolor.cpp.


Variable Documentation

BOOL USEWINCOLORS = 1
 

Definition at line 38 of file syscolor.cpp.

COLORREF SysColors[ (COLOR_GRADIENTINACTIVECAPTION+1) ] [static]
 

Definition at line 42 of file syscolor.cpp.

char* ColorNames[ (COLOR_GRADIENTINACTIVECAPTION+1) ] [static]
 

Definition at line 76 of file syscolor.cpp.

HPEN SysColorPens[ (COLOR_GRADIENTINACTIVECAPTION+1) ] = {0} [static]
 

Definition at line 109 of file syscolor.cpp.

HBRUSH SysColorBrushes[ (COLOR_GRADIENTINACTIVECAPTION+1) ] = {0} [static]
 

Definition at line 110 of file syscolor.cpp.

BOOL fColorInit = FALSE [static]
 

Definition at line 111 of file syscolor.cpp.

const WORD wPattern55AA[] [static]
 

Initial value:

{
    0x5555, 0xaaaa, 0x5555, 0xaaaa,
    0x5555, 0xaaaa, 0x5555, 0xaaaa
}

Definition at line 116 of file syscolor.cpp.

HBRUSH hPattern55AABrush = 0 [static]
 

Definition at line 122 of file syscolor.cpp.

HBITMAP hPattern55AABitmap = 0 [static]
 

Definition at line 123 of file syscolor.cpp.

HBRUSH OS2SysColorBrush[ 41L ] = {0}
 

Definition at line 270 of file syscolor.cpp.


Generated on Wed Jan 23 23:20:09 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001