#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:
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} |
|
Definition at line 28 of file syscolor.cpp. |
|
Definition at line 31 of file syscolor.cpp. |
|
Definition at line 34 of file syscolor.cpp. |
|
Definition at line 36 of file syscolor.cpp. |
|
Definition at line 113 of file syscolor.cpp. |
|
Definition at line 125 of file syscolor.cpp. Referenced by SYSCOLOR_Init(), and SetSysColors().
|
|
Definition at line 138 of file syscolor.cpp. Referenced by SYSCOLOR_Init().
|
|
Definition at line 157 of file syscolor.cpp. Referenced by cleanupUser32().
|
|
Definition at line 178 of file syscolor.cpp. |
|
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().
|
|
Definition at line 220 of file syscolor.cpp. |
|
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().
|
|
Definition at line 272 of file syscolor.cpp. |
|
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().
|
|
Definition at line 306 of file syscolor.cpp. |
|
Definition at line 312 of file syscolor.cpp. |
|
Definition at line 318 of file syscolor.cpp. |
|
Definition at line 325 of file syscolor.cpp. Referenced by Paint_DrawState(), and UITOOLS_DrawCheckedRect().
|
|
Definition at line 334 of file syscolor.cpp. Referenced by GetPattern55AABrush().
|
|
Definition at line 342 of file syscolor.cpp. |
|
Definition at line 358 of file syscolor.cpp. |
|
Definition at line 369 of file syscolor.cpp. |
|
Definition at line 38 of file syscolor.cpp. |
|
Definition at line 42 of file syscolor.cpp. |
|
Definition at line 76 of file syscolor.cpp. |
|
Definition at line 109 of file syscolor.cpp. |
|
Definition at line 110 of file syscolor.cpp. |
|
Definition at line 111 of file syscolor.cpp. |
|
Initial value: { 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa, 0x5555, 0xaaaa } Definition at line 116 of file syscolor.cpp. |
|
Definition at line 122 of file syscolor.cpp. |
|
Definition at line 123 of file syscolor.cpp. |
|
Definition at line 270 of file syscolor.cpp. |