24#define WIN32_LEAN_AND_MEAN
35#define expect_eq(expr, value, type, fmt) { type val = expr; ok(val == (value), #expr " expected " fmt " got " fmt "\n", (value), val); }
44 int min_timeout = 100;
57 return CreateWindowA(
"static",
"Test",
WS_VISIBLE|
WS_CHILD|
style, 5, 5, 100, 100,
hMainWnd, (
HMENU)
CTRL_ID,
NULL, 0);
68 ok(
GetClipRgn(
hdc,
hrgn) == 1,
"Static controls during a WM_CTLCOLORSTATIC must have a clipping region\n");
81 RECT r1 = {20, 20, 30, 30};
101 ok ( colour != 0,
"pixel should NOT be painted black!\n");
124 ok(!
strcmp(buffA,
"Test"),
"got wrong text %s\n", buffA);
128 ok(buffA[0] == 0,
"got wrong text %s\n", buffA);
138 wndclass.
cbSize =
sizeof(wndclass);
152 hMainWnd =
CreateWindowA(
szClassName,
"Test",
WS_OVERLAPPEDWINDOW, 0, 0, 500, 500,
NULL,
NULL,
GetModuleHandleA(
NULL),
NULL);
int strcmp(const char *String1, const char *String2)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static const WCHAR szClassName[]
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTickCount(VOID)
static int g_nReceivedColorStatic
static void flush_events(void)
static void test_set_text(void)
static void test_updates(int style, int flags)
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static HWND build_static(DWORD style)
#define expect_eq(expr, value, type, fmt)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define WM_CTLCOLORSTATIC
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA *)
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName)
BOOL WINAPI UpdateWindow(_In_ HWND)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)