ReactOS 0.4.16-dev-2491-g3dc6630
static.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/test.h"
Include dependency graph for static.c:

Go to the source code of this file.

Macros

#define OEMRESOURCE
 
#define CTRL_ID   1995
 

Functions

static void flush_events (void)
 
static HWND build_static (DWORD style)
 
static LRESULT CALLBACK WndProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
 
static void test_updates (int style)
 
static void test_set_text (void)
 
static void test_image (HBITMAP image)
 
static void test_set_image (void)
 
static void test_STM_SETIMAGE (void)
 
 START_TEST (static)
 

Variables

static HWND hMainWnd
 
static int g_nReceivedColorStatic = 0
 

Macro Definition Documentation

◆ CTRL_ID

#define CTRL_ID   1995

Definition at line 31 of file static.c.

◆ OEMRESOURCE

#define OEMRESOURCE

Definition at line 26 of file static.c.

Function Documentation

◆ build_static()

static HWND build_static ( DWORD  style)
static

Definition at line 52 of file static.c.

53{
54 return CreateWindowA("static", "Test", WS_VISIBLE|WS_CHILD|style, 5, 5, 100, 100, hMainWnd, (HMENU)CTRL_ID, NULL, 0);
55}
Arabic default style
Definition: afstyles.h:94
#define NULL
Definition: types.h:112
static HWND hMainWnd
Definition: static.c:38
#define CTRL_ID
Definition: static.c:36
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
#define WS_CHILD
Definition: pedump.c:617
#define WS_VISIBLE
Definition: pedump.c:620
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4469

Referenced by test_set_image(), test_set_text(), test_STM_SETIMAGE(), and test_updates().

◆ flush_events()

static void flush_events ( void  )
static

Definition at line 37 of file static.c.

38{
39 MSG msg;
40 int diff = 200;
41 int min_timeout = 100;
42 DWORD time = GetTickCount() + diff;
43
44 while (diff > 0)
45 {
46 if (MsgWaitForMultipleObjects( 0, NULL, FALSE, min_timeout, QS_ALLINPUT ) == WAIT_TIMEOUT) break;
47 while (PeekMessageA( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageA( &msg );
48 diff = time - GetTickCount();
49 }
50}
#define msg(x)
Definition: auth_time.c:54
#define WAIT_TIMEOUT
Definition: dderror.h:14
#define FALSE
Definition: types.h:117
ULONG WINAPI DECLSPEC_HOTPATCH GetTickCount(void)
Definition: sync.c:182
unsigned long DWORD
Definition: ntddk_ex.h:95
__u16 time
Definition: mkdosfs.c:8
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define QS_ALLINPUT
Definition: winuser.h:914
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
#define PM_REMOVE
Definition: winuser.h:1207
BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)

◆ START_TEST()

START_TEST ( static  )

Definition at line 348 of file static.c.

349{
350 static const char szClassName[] = "testclass";
351 WNDCLASSEXA wndclass;
352
353 wndclass.cbSize = sizeof(wndclass);
354 wndclass.style = CS_HREDRAW | CS_VREDRAW;
355 wndclass.lpfnWndProc = WndProc;
356 wndclass.cbClsExtra = 0;
357 wndclass.cbWndExtra = 0;
358 wndclass.hInstance = GetModuleHandleA(NULL);
363 wndclass.lpszClassName = szClassName;
364 wndclass.lpszMenuName = NULL;
365 RegisterClassExA(&wndclass);
366
369
370 test_updates(0);
388
390}
static const WCHAR szClassName[]
Definition: clipbrd.c:11
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
static void test_set_text(void)
Definition: static.c:123
static void test_updates(int style, int flags)
Definition: static.c:81
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: static.c:62
static void test_set_image(void)
Definition: static.c:192
static void test_STM_SETIMAGE(void)
Definition: static.c:236
#define SS_WHITERECT
Definition: pedump.c:698
#define SS_WHITEFRAME
Definition: pedump.c:701
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
#define SS_BLACKRECT
Definition: pedump.c:696
#define SS_SIMPLE
Definition: pedump.c:702
#define SS_BITMAP
Definition: pedump.c:704
#define SS_BLACKFRAME
Definition: pedump.c:699
#define SS_ICON
Definition: pedump.c:695
int cbClsExtra
Definition: winuser.h:3312
HINSTANCE hInstance
Definition: winuser.h:3314
HCURSOR hCursor
Definition: winuser.h:3316
LPCSTR lpszMenuName
Definition: winuser.h:3318
HICON hIconSm
Definition: winuser.h:3320
UINT style
Definition: winuser.h:3310
int cbWndExtra
Definition: winuser.h:3313
UINT cbSize
Definition: winuser.h:3309
WNDPROC lpfnWndProc
Definition: winuser.h:3311
LPCSTR lpszClassName
Definition: winuser.h:3319
HICON hIcon
Definition: winuser.h:3315
HBRUSH hbrBackground
Definition: winuser.h:3317
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define WHITE_BRUSH
Definition: wingdi.h:902
#define SS_USERITEM
Definition: winuser.h:361
#define CS_VREDRAW
Definition: winuser.h:666
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define SS_OWNERDRAW
Definition: winuser.h:352
#define CS_HREDRAW
Definition: winuser.h:661
#define IDC_ARROW
Definition: winuser.h:695
#define SS_ETCHEDFRAME
Definition: winuser.h:342
#define SS_ETCHEDHORZ
Definition: winuser.h:343
#define SS_CENTERIMAGE
Definition: winuser.h:339
#define SS_ETCHEDVERT
Definition: winuser.h:344
#define IDI_APPLICATION
Definition: winuser.h:712
ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA *)
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName)
Definition: cursoricon.c:2429
#define SW_SHOW
Definition: winuser.h:786
BOOL WINAPI DestroyWindow(_In_ HWND)
#define SS_SUNKEN
Definition: winuser.h:358
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2459
const char * LPCSTR
Definition: xmlstorage.h:183

◆ test_image()

static void test_image ( HBITMAP  image)
static

Definition at line 143 of file static.c.

144{
145 BITMAP bm;
146 HDC hdc;
148 BYTE bits[4];
149#ifdef __REACTOS__
150 UINT display_bpp;
151
152 hdc = GetDC(0);
153 display_bpp = GetDeviceCaps(hdc, BITSPIXEL);
154 ReleaseDC(0, hdc);
155#endif
156
157 GetObjectW(image, sizeof(bm), &bm);
158 ok(bm.bmWidth == 1, "got %d\n", bm.bmWidth);
159 ok(bm.bmHeight == 1, "got %d\n", bm.bmHeight);
160#ifdef __REACTOS__
161 ok(bm.bmBitsPixel == display_bpp, "got %d\n", bm.bmBitsPixel);
162#else
163 ok(bm.bmBitsPixel == 32, "got %d\n", bm.bmBitsPixel);
164#endif
165 ok(bm.bmBits == NULL, "bmBits is not NULL\n");
166
167 info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
168 info.bmiHeader.biWidth = bm.bmWidth;
169 info.bmiHeader.biHeight = bm.bmHeight;
170 info.bmiHeader.biPlanes = 1;
171 info.bmiHeader.biBitCount = 32;
172 info.bmiHeader.biCompression = BI_RGB;
173 info.bmiHeader.biSizeImage = 4;
174 info.bmiHeader.biXPelsPerMeter = 0;
175 info.bmiHeader.biYPelsPerMeter = 0;
176 info.bmiHeader.biClrUsed = 0;
177 info.bmiHeader.biClrImportant = 0;
178
181 DeleteDC(hdc);
182
183#ifdef __REACTOS__
184 ok(bits[0] == 0x11 && bits[1] == 0x22 && bits[2] == 0x33 && (display_bpp == 32 ? bits[3] == 0x44 : bits[3] == 0x00),
185 "bits: %02x %02x %02x %02x\n", bits[0], bits[1], bits[2], bits[3]);
186#else
187 ok(bits[0] == 0x11 && bits[1] == 0x22 && bits[2] == 0x33 && bits[3] == 0x44,
188 "bits: %02x %02x %02x %02x\n", bits[0], bits[1], bits[2], bits[3]);
189#endif
190}
#define ok(value,...)
Definition: atltest.h:57
#define BI_RGB
Definition: precomp.h:44
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:10929
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
unsigned int UINT
Definition: ndis.h:50
LONG bmHeight
Definition: wingdi.h:1869
LONG bmWidth
Definition: wingdi.h:1868
LPVOID bmBits
Definition: wingdi.h:1873
WORD bmBitsPixel
Definition: wingdi.h:1872
#define DIB_RGB_COLORS
Definition: wingdi.h:367
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
int WINAPI GetDIBits(_In_ HDC hdc, _In_ HBITMAP hbm, _In_ UINT start, _In_ UINT cLines, _Out_opt_ LPVOID lpvBits, _At_((LPBITMAPINFOHEADER) lpbmi, _Inout_) LPBITMAPINFO lpbmi, _In_ UINT usage)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define BITSPIXEL
Definition: wingdi.h:720
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
unsigned char BYTE
Definition: xxhash.c:193

Referenced by test_set_image().

◆ test_set_image()

static void test_set_image ( void  )
static

Definition at line 192 of file static.c.

193{
196
198 ok(image != NULL, "LoadImage failed\n");
199
201
203 ok(bmp == NULL, "got not NULL\n");
204
206 ok(bmp != NULL, "got NULL\n");
207 ok(bmp == image, "bmp != image\n");
208
210 ok(bmp != NULL, "got NULL\n");
211 ok(bmp == image, "bmp != image\n");
213
216
217 hwnd = CreateWindowW(L"static", L"\uffff\x65", WS_VISIBLE|WS_CHILD|SS_BITMAP, 5, 5, 100, 100,
219
221 ok(bmp != NULL, "got NULL\n");
223
225
226 hwnd = CreateWindowA("static", "\xff\x65\0", WS_VISIBLE|WS_CHILD|SS_BITMAP, 5, 5, 100, 100,
228
230 ok(bmp != NULL, "got NULL\n");
232
234}
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
#define L(x)
Definition: resources.c:13
pKey DeleteObject()
GLeglImageOES image
Definition: gl.h:2204
LONG_PTR LPARAM
Definition: minwindef.h:175
BITMAP bmp
Definition: alphablend.c:62
static HBITMAP
Definition: button.c:44
static HWND build_static(DWORD style)
Definition: static.c:52
static void test_image(HBITMAP image)
Definition: static.c:143
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define IMAGE_BITMAP
Definition: winuser.h:211
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2572
#define STM_SETIMAGE
Definition: winuser.h:2129
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4470
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define STM_GETIMAGE
Definition: winuser.h:2127
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by START_TEST().

◆ test_set_text()

static void test_set_text ( void  )
static

Definition at line 128 of file static.c.

129{
130 HWND hStatic = build_static(SS_SIMPLE);
131 char buffA[10];
132
133 GetWindowTextA(hStatic, buffA, sizeof(buffA));
134 ok(!strcmp(buffA, "Test"), "got wrong text %s\n", buffA);
135
136 SetWindowTextA(hStatic, NULL);
137 GetWindowTextA(hStatic, buffA, sizeof(buffA));
138 ok(buffA[0] == 0, "got wrong text %s\n", buffA);
139
140 DestroyWindow(hStatic);
141}
_ACRTIMP int __cdecl strcmp(const char *, const char *)
Definition: string.c:3319
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
Definition: window.c:1300
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)

◆ test_STM_SETIMAGE()

static void test_STM_SETIMAGE ( void  )
static

Definition at line 236 of file static.c.

237{
238 DWORD type;
239 HWND hwnd;
240 HICON icon, old_image;
241 HBITMAP bmp;
242 HENHMETAFILE emf;
243 HDC dc;
244
246 bmp = LoadBitmapW(0, (LPCWSTR)OBM_CLOSE);
248 LineTo(dc, 1, 1);
250 DeleteDC(dc);
251
252 for (type = SS_LEFT; type < SS_ETCHEDFRAME; type++)
253 {
255
257 ok(hwnd != 0, "failed to create static type %#lx\n", type);
258
259 /* set icon */
261 old_image = (HICON)SendMessageW(hwnd, STM_SETIMAGE, IMAGE_ICON, (LPARAM)icon);
262 ok(!old_image, "got %p\n", old_image);
263 if (type == SS_ICON)
264 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
265 else
266 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
267
269 old_image = (HICON)SendMessageW(hwnd, STM_SETIMAGE, IMAGE_ICON, (LPARAM)icon);
270 if (type == SS_ICON)
271 {
272 ok(old_image != 0, "got %p\n", old_image);
273 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
274 }
275 else
276 {
277 ok(!old_image, "got %p\n", old_image);
278 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
279 }
280
282 old_image = (HICON)SendMessageW(hwnd, STM_SETICON, (WPARAM)icon, 0);
283 if (type == SS_ICON)
284 {
285 ok(old_image != 0, "got %p\n", old_image);
286 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
287 }
288 else
289 {
290 ok(!old_image, "got %p\n", old_image);
291 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
292 }
293
294 /* set bitmap */
297 ok(!old_image, "got %p\n", old_image);
298 if (type == SS_BITMAP)
299 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
300 else
301 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
302
305 if (type == SS_BITMAP)
306 {
307 ok(old_image != 0, "got %p\n", old_image);
308 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
309 }
310 else
311 {
312 ok(!old_image, "got %p\n", old_image);
313 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
314 }
315
316 /* set EMF */
319 ok(!old_image, "got %p\n", old_image);
320 if (type == SS_ENHMETAFILE)
321 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
322 else
323 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
324
327 if (type == SS_ENHMETAFILE)
328 {
329 ok(old_image != 0, "got %p\n", old_image);
330 ok(g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
331 }
332 else
333 {
334 ok(!old_image, "got %p\n", old_image);
335 ok(!g_nReceivedColorStatic, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
336 }
337
339
341 }
342
343 DestroyIcon(icon);
346}
HDC dc
Definition: cylfrac.c:34
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl void winetest_pop_context(void)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl winetest_push_context(const char *fmt,...) __WINE_PRINTF_ATTR(1
Definition: test.h:537
UINT_PTR WPARAM
Definition: minwindef.h:174
static HICON
Definition: imagelist.c:80
static int g_nReceivedColorStatic
Definition: static.c:39
#define SS_LEFT
Definition: pedump.c:692
Definition: emfdc.c:45
BOOL WINAPI DeleteEnhMetaFile(_In_opt_ HENHMETAFILE)
HDC WINAPI CreateEnhMetaFileW(_In_opt_ HDC, _In_opt_ LPCWSTR, _In_opt_ LPCRECT, _In_opt_ LPCWSTR)
HENHMETAFILE WINAPI CloseEnhMetaFile(_In_ HDC hdc)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
#define STM_SETICON
Definition: winuser.h:2128
#define IMAGE_ICON
Definition: winuser.h:212
#define SS_ENHMETAFILE
Definition: winuser.h:341
#define IMAGE_ENHMETAFILE
Definition: winuser.h:214
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2532
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
Definition: cursoricon.c:2444
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2422
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by START_TEST().

◆ test_updates()

static void test_updates ( int  style)
static

Definition at line 76 of file static.c.

77{
78 RECT r1 = {5, 5, 30, 30}, rcClient;
79 HWND hStatic = build_static(style);
80 int exp;
81 LONG exstyle;
82
84 trace("Testing style 0x%x\n", style);
85
86 exstyle = GetWindowLongW(hStatic, GWL_EXSTYLE);
88 ok(exstyle == WS_EX_STATICEDGE, "expected WS_EX_STATICEDGE, got %ld\n", exstyle);
89 else
90 ok(exstyle == 0, "expected 0, got %ld\n", exstyle);
91
92 GetClientRect(hStatic, &rcClient);
93 if (style == SS_ETCHEDVERT)
94 ok(rcClient.right == 0, "expected zero width, got %ld\n", rcClient.right);
95 else
96 ok(rcClient.right > 0, "expected non-zero width, got %ld\n", rcClient.right);
97 if (style == SS_ETCHEDHORZ)
98 ok(rcClient.bottom == 0, "expected zero height, got %ld\n", rcClient.bottom);
99 else
100 ok(rcClient.bottom > 0, "expected non-zero height, got %ld\n", rcClient.bottom);
101
103 /* during each update parent WndProc will test the WM_CTLCOLORSTATIC message */
108 InvalidateRect(hStatic, &r1, FALSE);
109 UpdateWindow(hStatic);
110 InvalidateRect(hStatic, NULL, FALSE);
111 UpdateWindow(hStatic);
112
113 if( (style & SS_TYPEMASK) == SS_BITMAP) {
114 HDC hdc = GetDC( hStatic);
115 COLORREF colour = GetPixel( hdc, 10, 10);
116 ok ( colour != 0, "pixel should NOT be painted black!\n");
117 ReleaseDC(hStatic, hdc);
118 }
120 exp = 4;
121 else
122 exp = 2; /* SS_ETCHEDHORZ/SS_ETCHEDVERT have empty client rect so WM_CTLCOLORSTATIC is sent only when parent window is invalidated */
123
124 ok( g_nReceivedColorStatic == exp, "expected %u, got %u\n", exp, g_nReceivedColorStatic );
125 DestroyWindow(hStatic);
126}
#define trace
Definition: atltest.h:70
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
Definition: blt.cpp:2
static void flush_events(void)
Definition: static.c:42
static DNS_RECORDW r1
Definition: record.c:37
DWORD exp
Definition: msg.c:18625
long LONG
Definition: pedump.c:60
DWORD COLORREF
Definition: windef.h:100
#define WS_EX_STATICEDGE
Definition: winuser.h:403
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
#define SS_TYPEMASK
Definition: winuser.h:362
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI UpdateWindow(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define GWL_EXSTYLE
Definition: winuser.h:862

◆ WndProc()

static LRESULT CALLBACK WndProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)
static

Definition at line 57 of file static.c.

58{
59 switch (msg)
60 {
62 {
63 HDC hdc = (HDC)wparam;
64 HRGN hrgn = CreateRectRgn(0, 0, 1, 1);
65 ok(GetClipRgn(hdc, hrgn) == 1, "Static controls during a WM_CTLCOLORSTATIC must have a clipping region\n");
69 }
70 break;
71 }
72
74}
static HRGN hrgn
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
LONG_PTR LRESULT
Definition: minwindef.h:176
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)
#define BLACK_BRUSH
Definition: wingdi.h:896
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1800
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Variable Documentation

◆ g_nReceivedColorStatic

int g_nReceivedColorStatic = 0
static

Definition at line 34 of file static.c.

◆ hMainWnd

HWND hMainWnd
static

Definition at line 33 of file static.c.