57 HDC hdcColorButton, hdcCompat;
67 hdcColorButton =
GetDC(hwndColorButton);
69 ReleaseDC(hwndColorButton, hdcColorButton);
103 HDC hdcColorButton, hdcCompat;
107 HWND hwndColorButton;
111 const POINT Points[3] = {{29,6},{33,6},{31,8}};
114 hdcColorButton =
GetDC(hwndColorButton);
115 for (
i = 0;
i <= 2;
i++)
148 LineTo(hdcCompat, 26, 14);
156 LineTo(hdcCompat, 27, 14);
177 ReleaseDC(hwndColorButton, hdcColorButton);
211 iElement =
g->CurrentElement;
237 hdcDlg =
GetDC(hwndDlg);
313 crColor =
g->SchemeAdv.crColor[ColorIndex];
317 cc.hwndOwner = hwndDlg;
319 cc.rgbResult = crColor;
320 cc.lpCustColors = crCustom;
329 g->SchemeAdv.crColor[ColorIndex] =
cc.rgbResult;
330 if (crColor !=
cc.rgbResult)
346 INT i, iElement, iListIndex, iDeskIndex = 0;
355 g->SchemeAdv =
g->Scheme;
368 for (iListIndex = 0; iListIndex <
NUM_ELEMENTS; iListIndex++)
373 iDeskIndex = iListIndex;
381 lfButtonFont =
g->Scheme.ncMetrics.lfMessageFont;
390 g->hBoldFont = hMyFont;
402 g->hItalicFont = hMyFont;
419 hScreenDC =
GetDC(0);
424 for (
i = 6;
i <= 24;
i++)
455 for (
i = 0;
i < nCount;
i++)
500 return _ttoi(szBuffer);
506 INT iSelection, iProperty;
536 g->SchemeAdv =
g->Scheme;
596 hdcDlg =
GetDC(hwndDlg);
HGDIOBJ WINAPI GetStockObject(_In_ int)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
#define SIZE_SM_CAPTION_HEIGHT
#define SIZE_CAPTION_HEIGHT
HDC WINAPI GetDC(_In_opt_ HWND)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
static INT GetSelectedComboInt(HWND hwnd, INT id)
static VOID UpdateControls(HWND hwndDlg, GLOBALS *g)
#define COLOR_INACTIVEBORDER
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
#define COLOR_INACTIVECAPTION
IN PVOID IN PVOID IN USHORT IN USHORT Size
#define COLOR_CAPTIONTEXT
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define COLOR_BTNHIGHLIGHT
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
#define COLOR_APPWORKSPACE
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define IDC_ADVAPPEARANCE_COLOR1_B
#define SendDlgItemMessage
#define IDC_ADVAPPEARANCE_FONTCOLOR_T
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
const ASSIGNMENT g_Assignment[NUM_ELEMENTS]
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
int SchemeGetMetric(COLOR_SCHEME *scheme, int id)
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
#define IDC_ADVAPPEARANCE_COLOR2_B
static VOID SaveCurrentValues(HWND hwndDlg, GLOBALS *g)
#define COLOR_GRADIENTINACTIVECAPTION
#define IDC_ADVAPPEARANCE_COLOR2_T
#define IDC_ADVAPPEARANCE_FONTCOLOR_B
static VOID UpdateButtonColor(HWND hwndDlg, GLOBALS *g, INT ID, INT nButton, INT nColor)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
INT_PTR CALLBACK AdvAppearanceDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define IDC_ADVAPPEARANCE_FONT_C
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
#define SIZE_SCROLL_HEIGHT
#define COLOR_ACTIVECAPTION
#define IDC_ADVAPPEARANCE_FONTBOLD
#define COLOR_HIGHLIGHTTEXT
#define SIZE_ICON_SPACE_X
static VOID InitColorButtons(HWND hwndDlg, GLOBALS *g)
static VOID AdvAppearanceDlg_CleanUp(HWND hwndDlg, GLOBALS *g)
#define IDC_ADVAPPEARANCE_SIZE_E
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
int WINAPI SetPolyFillMode(_In_ HDC, _In_ int)
#define NUM_ELEMENTS(array)
#define COLOR_ACTIVEBORDER
#define COLOR_GRADIENTACTIVECAPTION
static VOID GetSelectedComboText(HWND hwnd, INT id, LPWSTR lpStr)
static int CALLBACK EnumFontFamExProc(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, DWORD dwFontType, LPARAM lParam)
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define COLOR_INACTIVECAPTIONTEXT
#define IDC_ADVAPPEARANCE_FONTITALIC
#define IDC_APPEARANCE_PREVIEW
#define IDC_ADVAPPEARANCE_SIZE_UD
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOL WINAPI DeleteDC(_In_ HDC)
#define IDC_ADVAPPEARANCE_FONTSIZE_T
int CDECL _ttoi(const _TCHAR *str)
static VOID SelectComboByElement(HWND hwnd, INT id, LPARAM lParam)
PLOGFONTW SchemeGetFont(COLOR_SCHEME *scheme, int id)
#define CreateFontIndirect
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define EnumFontFamiliesEx
#define SIZE_BORDER_WIDTH
#define IDC_ADVAPPEARANCE_ELEMENT
#define IDC_ADVAPPEARANCE_FONT_T
#define IDC_ADVAPPEARANCE_COLOR1_T
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
FONTENUMPROCA FONTENUMPROC
VOID SchemeSetMetric(COLOR_SCHEME *scheme, int id, int value)
#define IDC_ADVAPPEARANCE_SIZE_T
CHAR lfFaceName[LF_FACESIZE]
#define SIZE_ICON_SPACE_Y
static BOOL GetColor(HWND hwndDlg, GLOBALS *g, INT nButton)
WCHAR lfFaceName[LF_FACESIZE]
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
#define IDC_ADVAPPEARANCE_FONTSIZE_E
static VOID AdvAppearanceDlg_Init(HWND hwndDlg, GLOBALS *g)
#define SIZE_SCROLL_WIDTH
#define CB_FINDSTRINGEXACT