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