57{
59 HWND hwndCombo, hwndCtrl;
62 static int prevwidth, prevheight;
63
64 switch(uMsg)
65 {
67
70
71
73 {
76 }
77
78
80
85
86
90
95
98
103 return 0;
104
106
107 return 0;
108
110
112 {
116 }
118 {
121
123
125
126 if(prevwidth <
rect.right)
127 {
128 rect.left = (
rect.right-prevwidth) / 2;
130 }
131 else
132 {
134 rect.right = prevwidth;
135 }
136
137 if(prevheight <
rect.bottom)
138 {
139 rect.top = (
rect.bottom-prevheight) / 2;
140 rect.bottom =
rect.top + prevheight;
141 }
142 else
143 {
145 rect.bottom = prevheight;
146 }
147
150
151
154
156
158
161
162
165
166
168
169
171 }
172 else
173 {
174 break;
175 }
176
178
180 {
181
183 }
184
185 return 0;
186
188
190 {
193
194
197
198
200 return 0;
201 }
202
204 {
207 break;
208
212 break;
213
215
217
219
221 {
223 }
224
226
227
231
232
236
237
241
242
246
249 return 0;
250
254
256
258
260 {
262 }
263
265
266 return 0;
267
271
274
277 return 0;
278 }
279 return 0;
280
283 return 0;
284 }
285 return 0;
286}
GLenum GLuint GLenum GLsizei const GLchar * buf
void AddFonts(HWND hwndCombo)
void UpdatePreview(HWND hwnd)
BOOL g_fRandomizeMessages
TCHAR g_szMessages[MAX_MESSAGES][MAXMSG_LENGTH]
HGDIOBJ WINAPI GetStockObject(_In_ int)
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)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
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)
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)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
int WINAPI GetDlgCtrlID(_In_ HWND)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define SendDlgItemMessage
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)