#include <stdarg.h>
#include <stdio.h>
#include <windows.h>
#include "commctrl.h"
#include "wine/test.h"
#include "v6util.h"
Go to the source code of this file.
◆ CTRL_ID
◆ STRICT
◆ TODO_COUNT
◆ WIN32_LEAN_AND_MEAN
◆ create_static()
Definition at line 57 of file static.c.
58{
59 return CreateWindowA(
WC_STATICA,
"Test",
WS_VISIBLE|
WS_CHILD|
style, 5, 5, 100, 100,
hMainWnd, (
HMENU)
CTRL_ID,
NULL, 0);
60}
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 42 of file static.c.
43{
45 int diff = 200;
46 int min_timeout = 100;
48
49 while (diff > 0)
50 {
54 }
55}
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)
Referenced by test_updates().
◆ START_TEST()
Definition at line 138 of file static.c.
139{
140 static const char classname[] =
"testclass";
144
146 return;
147
148 wndclass.
cbSize =
sizeof(wndclass);
161
165
176
178
180}
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
static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
static void unload_v6_module(ULONG_PTR cookie, HANDLE hCtx)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA *)
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE, _In_ LPCSTR)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
◆ test_set_text()
Definition at line 123 of file static.c.
124{
126 char buffA[10];
127
129 ok(!
strcmp(buffA,
"Test"),
"got wrong text %s\n", buffA);
130
133 ok(buffA[0] == 0,
"got wrong text %s\n", buffA);
134
136}
int strcmp(const char *String1, const char *String2)
static HWND create_static(DWORD style)
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)
Referenced by START_TEST().
◆ test_updates()
Definition at line 81 of file static.c.
82{
84 RECT r1 = {20, 20, 30, 30};
86
89
98
100 {
104 ok(colour == 0,
"Unexpected pixel color.\n");
106 }
107
110 else
112
118 else
121}
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static int g_nReceivedColorStatic
static void flush_events(void)
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)
Referenced by START_TEST().
◆ WndProc()
Definition at line 62 of file static.c.
63{
65 {
67 {
70 ok(
GetClipRgn(
hdc,
hrgn) == 1,
"Static controls during a WM_CTLCOLORSTATIC must have a clipping region\n");
74 }
75 break;
76 }
77
79}
static UINT WPARAM wparam
static UINT WPARAM LPARAM lparam
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)
Referenced by START_TEST().
◆ g_nReceivedColorStatic
int g_nReceivedColorStatic |
|
static |
◆ hMainWnd