465 pPreviewData->cySizeFrame = pPreviewData->Scheme.ncMetrics.iBorderWidth;
466 pPreviewData->cyCaption = pPreviewData->Scheme.ncMetrics.iCaptionHeight+1;
467 pPreviewData->cyMenu = pPreviewData->Scheme.ncMetrics.iMenuHeight -1;
468 pPreviewData->cxScrollbar = pPreviewData->Scheme.ncMetrics.iScrollWidth;
469 pPreviewData->cyBorder = pPreviewData->Scheme.ncMetrics.iBorderWidth;
481 case FONT_CAPTION: phFont = &pPreviewData->hCaptionFont;
break;
482 case FONT_MENU: phFont = &pPreviewData->hMenuFont;
break;
483 case FONT_MESSAGE: phFont = &pPreviewData->hMessageFont;
break;
484 default:
return TRUE;
524 return pPreviewData->Scheme.crColor[
wParam];
PLOGFONTW SchemeGetFont(COLOR_SCHEME *scheme, int id)
int SchemeGetMetric(COLOR_SCHEME *scheme, int id)
VOID SchemeSetMetric(COLOR_SCHEME *scheme, int id, int value)
BOOL LoadCurrentScheme(PCOLOR_SCHEME scheme)
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
BOOL MyDrawEdge(HDC hDC, LPRECT rc, UINT edge, UINT flags, COLOR_SCHEME *scheme)
VOID MyDrawScrollbar(HDC hdc, LPRECT rc, HBRUSH hbrScrollbar, COLOR_SCHEME *scheme)
VOID MyDrawCaptionButtons(HDC hdc, LPRECT lpRect, BOOL bMinMax, int x, COLOR_SCHEME *scheme)
DWORD MyDrawMenuBarTemp(HWND Wnd, HDC DC, LPRECT Rect, HMENU Menu, HFONT Font, COLOR_SCHEME *scheme)
BOOL MyDrawCaptionTemp(HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont, HICON hIcon, LPCWSTR str, UINT uFlags, COLOR_SCHEME *scheme)
BOOL MyDrawFrameControl(HDC hDC, LPRECT rc, UINT uType, UINT uState, COLOR_SCHEME *scheme)
#define HeapFree(x, y, z)
#define MY_BF_ACTIVEBORDER
#define MY_BF_INACTIVEBORDER
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
GLuint GLuint GLsizei GLenum type
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
HLOCAL NTAPI LocalFree(HLOCAL hMem)
#define memcpy(s1, s2, n)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static VOID UpdatePreviewTheme(HWND hwnd, PPREVIEW_DATA pPreviewData, COLOR_SCHEME *scheme)
static VOID OnPaint(HWND hwnd, PPREVIEW_DATA pPreviewData)
static VOID OnSize(INT cx, INT cy, PPREVIEW_DATA pPreviewData)
static const TCHAR szPreviewWndClass[]
static VOID OnCreate(HWND hwnd, PPREVIEW_DATA pPreviewData)
static VOID OnLButtonDown(HWND hwnd, int xPos, int yPos, PPREVIEW_DATA pPreviewData)
static VOID CalculateItemSize(PPREVIEW_DATA pPreviewData)
struct _PREVIEW_DATA PREVIEW_DATA
BOOL RegisterPreviewControl(IN HINSTANCE hInstance)
static LRESULT CALLBACK PreviewWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
struct _PREVIEW_DATA * PPREVIEW_DATA
VOID UnregisterPreviewControl(IN HINSTANCE hInstance)
static VOID OnDestroy(PPREVIEW_DATA pPreviewData)
#define IDX_INACTIVE_BORDER
#define IDX_ACTIVE_BORDER
#define IDX_INACTIVE_CAPTION
#define IDX_ACTIVE_CAPTION
#define PVM_SET_HDC_PREVIEW
#define IDX_CAPTION_BUTTON
_Out_opt_ int _Out_opt_ int * cy
RECT rcActiveCaptionButtons
RECT rcInactiveCaptionButtons
RECT rcDialogCaptionButtons
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define CreateFontIndirect
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
#define COLOR_INACTIVECAPTIONTEXT
#define GetWindowLongPtrW
BOOL WINAPI HiliteMenuItem(_In_ HWND, _In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define COLOR_CAPTIONTEXT
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)