#include <stdarg.h>
#include <stdio.h>
#include <windows.h>
#include "wine/test.h"
Go to the source code of this file.
◆ CTRL_ID
◆ expect_eq
◆ STRICT
◆ TODO_COUNT
◆ WIN32_LEAN_AND_MEAN
◆ build_static()
Definition at line 55 of file static.c.
56{
57 return CreateWindowA(
"static",
"Test",
WS_VISIBLE|
WS_CHILD|
style, 5, 5, 100, 100,
hMainWnd, (
HMENU)
CTRL_ID,
NULL, 0);
58}
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Referenced by test_set_text(), and test_updates().
◆ flush_events()
Definition at line 40 of file static.c.
41{
43 int diff = 200;
44 int min_timeout = 100;
46
47 while (diff > 0)
48 {
52 }
53}
DWORD WINAPI GetTickCount(VOID)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
◆ START_TEST()
Definition at line 133 of file static.c.
134{
137
138 wndclass.
cbSize =
sizeof(wndclass);
151
152 hMainWnd =
CreateWindowA(
szClassName,
"Test",
WS_OVERLAPPEDWINDOW, 0, 0, 500, 500,
NULL,
NULL,
GetModuleHandleA(
NULL),
NULL);
154
165
167}
static const WCHAR szClassName[]
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
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)
#define WS_OVERLAPPEDWINDOW
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA *)
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
◆ test_set_text()
Definition at line 118 of file static.c.
119{
121 char buffA[10];
122
124 ok(!
strcmp(buffA,
"Test"),
"got wrong text %s\n", buffA);
125
128 ok(buffA[0] == 0,
"got wrong text %s\n", buffA);
129
131}
int strcmp(const char *String1, const char *String2)
static HWND build_static(DWORD style)
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)
◆ test_updates()
Definition at line 79 of file static.c.
80{
81 RECT r1 = {20, 20, 30, 30};
84
88
97
101 ok ( colour != 0,
"pixel should NOT be painted black!\n");
103 }
106 else
108
113 else
116}
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static int g_nReceivedColorStatic
static void flush_events(void)
#define expect_eq(expr, value, type, fmt)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI UpdateWindow(_In_ HWND)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
◆ WndProc()
Definition at line 60 of file static.c.
61{
63 {
65 {
68 ok(
GetClipRgn(
hdc,
hrgn) == 1,
"Static controls during a WM_CTLCOLORSTATIC must have a clipping region\n");
72 }
73 break;
74 }
75
77}
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)
#define WM_CTLCOLORSTATIC
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
◆ g_nReceivedColorStatic
int g_nReceivedColorStatic = 0 |
|
static |
◆ hMainWnd