59 HWND hwndCombo, hwndCtrl;
62 static int prevwidth, prevheight;
126 if(prevwidth <
rect.right)
128 rect.left = (
rect.right-prevwidth) / 2;
134 rect.right = prevwidth;
137 if(prevheight <
rect.bottom)
139 rect.top = (
rect.bottom-prevheight) / 2;
140 rect.bottom =
rect.top + prevheight;
145 rect.bottom = prevheight;
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
GLenum GLuint GLenum GLsizei const GLchar * buf
int Configure(HWND hwndParent)
INT_PTR CALLBACK ConfigDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void AddFonts(HWND hwndCombo)
void UpdatePreview(HWND hwnd)
int CALLBACK EnumFontProc(ENUMLOGFONT *lpelfe, NEWTEXTMETRIC *lpntme, int FontType, LPARAM lParam)
BOOL g_fRandomizeMessages
TCHAR g_szMessages[MAX_MESSAGES][MAXMSG_LENGTH]
void SetMessageFont(HWND hwnd, TCHAR *szFontName, int nPointSize, BOOL fBold)
CHAR lfFaceName[LF_FACESIZE]
CHAR lfFaceName[LF_FACESIZE]
HGDIOBJ WINAPI GetStockObject(_In_ int)
FONTENUMPROCA FONTENUMPROC
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
int WINAPI IntersectClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
#define EnumFontFamiliesEx
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
int WINAPI FrameRect(_In_ HDC, _In_ LPCRECT, _In_ HBRUSH)
#define WM_CTLCOLORSTATIC
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
HWND WINAPI GetForegroundWindow(void)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
int WINAPI GetDlgCtrlID(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define SendDlgItemMessage
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)