41 int min_timeout = 100;
54 return CreateWindowA(
"static",
"Test",
WS_VISIBLE|
WS_CHILD|
style, 5, 5, 100, 100,
hMainWnd, (
HMENU)
CTRL_ID,
NULL, 0);
65 ok(
GetClipRgn(
hdc,
hrgn) == 1,
"Static controls during a WM_CTLCOLORSTATIC must have a clipping region\n");
78 RECT r1 = {5, 5, 30, 30}, rcClient;
90 ok(exstyle == 0,
"expected 0, got %ld\n", exstyle);
94 ok(rcClient.right == 0,
"expected zero width, got %ld\n", rcClient.right);
96 ok(rcClient.right > 0,
"expected non-zero width, got %ld\n", rcClient.right);
98 ok(rcClient.bottom == 0,
"expected zero height, got %ld\n", rcClient.bottom);
100 ok(rcClient.bottom > 0,
"expected non-zero height, got %ld\n", rcClient.bottom);
116 ok ( colour != 0,
"pixel should NOT be painted black!\n");
134 ok(!
strcmp(buffA,
"Test"),
"got wrong text %s\n", buffA);
138 ok(buffA[0] == 0,
"got wrong text %s\n", buffA);
170 info.bmiHeader.biPlanes = 1;
171 info.bmiHeader.biBitCount = 32;
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;
184 ok(
bits[0] == 0x11 &&
bits[1] == 0x22 &&
bits[2] == 0x33 && (display_bpp == 32 ?
bits[3] == 0x44 :
bits[3] == 0x00),
240 HICON icon, old_image;
257 ok(
hwnd != 0,
"failed to create static type %#lx\n",
type);
262 ok(!old_image,
"got %p\n", old_image);
272 ok(old_image != 0,
"got %p\n", old_image);
277 ok(!old_image,
"got %p\n", old_image);
285 ok(old_image != 0,
"got %p\n", old_image);
290 ok(!old_image,
"got %p\n", old_image);
297 ok(!old_image,
"got %p\n", old_image);
307 ok(old_image != 0,
"got %p\n", old_image);
312 ok(!old_image,
"got %p\n", old_image);
319 ok(!old_image,
"got %p\n", old_image);
329 ok(old_image != 0,
"got %p\n", old_image);
334 ok(!old_image,
"got %p\n", old_image);
353 wndclass.
cbSize =
sizeof(wndclass);
367 hMainWnd =
CreateWindowA(
szClassName,
"Test",
WS_OVERLAPPEDWINDOW, 0, 0, 500, 500,
NULL,
NULL,
GetModuleHandleA(
NULL),
NULL);
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static const WCHAR szClassName[]
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
ULONG WINAPI DECLSPEC_HOTPATCH GetTickCount(void)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
GLuint GLuint GLsizei GLenum type
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
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
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)
static void test_image(HBITMAP image)
static void test_set_image(void)
static void test_STM_SETIMAGE(void)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
BOOL WINAPI DeleteEnhMetaFile(_In_opt_ HENHMETAFILE)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _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 CreateEnhMetaFileW(_In_opt_ HDC, _In_opt_ LPCWSTR, _In_opt_ LPCRECT, _In_opt_ LPCWSTR)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)
HENHMETAFILE WINAPI CloseEnhMetaFile(_In_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
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)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define IMAGE_ENHMETAFILE
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)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
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)
#define MAKEINTRESOURCEW(i)
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
BOOL WINAPI DestroyIcon(_In_ HICON)