27#define expect(expected, got) ok(got == expected, "Expected %d, got %d\n", expected, got)
28#define NUM_MSG_SEQUENCE 2
29#define PARENT_SEQ_INDEX 0
30#define SYSLINK_SEQ_INDEX 1
67 int min_timeout = 100;
80 static LONG defwndproc_counter = 0;
102 defwndproc_counter++;
104 defwndproc_counter--;
109static const WCHAR parentClassW[] = {
'S',
'y',
's',
'l',
'i',
'n',
'k',
' ',
't',
'e',
's',
't',
' ',
'p',
'a',
'r',
'e',
'n',
't',
' ',
'c',
'l',
'a',
's',
's',0};
130 static const WCHAR titleW[] = {
'S',
'y',
's',
'l',
'i',
'n',
'k',
' ',
't',
'e',
's',
't',
' ',
'p',
'a',
'r',
'e',
'n',
't',
' ',
'w',
'i',
'n',
'd',
'o',
'w',0};
145 static LONG defwndproc_counter = 0;
156 defwndproc_counter++;
158 defwndproc_counter--;
166 static const WCHAR linkW[] = {
'H',
'e',
'a',
'd',
' ',
'<',
'a',
' ',
'h',
'r',
'e',
'f',
'=',
'"',
'l',
'i',
'n',
'k',
'1',
'"',
'>',
'N',
'a',
'm',
'e',
'1',
'<',
'/',
'a',
'>',
' ',
'M',
'i',
'd',
'd',
'l',
'e',
' ',
'<',
'a',
' ',
'h',
'r',
'e',
'f',
'=',
'"',
'l',
'i',
'n',
'k',
'2',
'"',
'>',
'N',
'a',
'm',
'e',
'2',
'<',
'/',
'a',
'>',
' ',
'T',
'a',
'i',
'l',0};
170 style, 0, 0, 150, 50,
172 if (!hWndSysLink)
return NULL;
176 trace(
"SysLink makes use of GWLP_USERDATA\n");
214 ok(
hwnd !=
NULL,
"Failed to create SysLink window.\n");
217 ok(
ret > 0,
"Unexpected ideal height, %d.\n",
ret);
229 ok(
hwnd !=
NULL,
"Failed to create SysLink window.\n");
231 memset(&sz, 0,
sizeof(sz));
233 ok(
ret > 0,
"Unexpected return value, %d.\n",
ret);
235 win_skip(
"LM_GETIDEALSIZE is not supported.\n");
238 ok(sz.
cx > 5,
"Unexpected ideal width, %d.\n", sz.
cx);
239 ok(sz.
cy ==
ret,
"Unexpected ideal height, %d.\n", sz.
cy);
static void init_msg_sequences(struct msg_sequence **seq, int n)
static void flush_sequences(struct msg_sequence **seq, int n)
static const WCHAR linkW[]
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
DWORD WINAPI GetTickCount(VOID)
static const WCHAR titleW[]
static struct msg_sequence * sequences[NUM_MSG_SEQUENCE]
static HWND create_parent_window(void)
static const struct message empty_wnd_seq[]
static BOOL register_parent_wnd_class(void)
static void test_LM_GETIDEALHEIGHT(void)
static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
static void test_create_syslink(void)
static LRESULT WINAPI syslink_subclass_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
static const struct message visible_syslink_wnd_seq[]
static const struct message parent_create_syslink_wnd_seq[]
static void flush_events(void)
static void test_LM_GETIDEALSIZE(void)
#define SYSLINK_SEQ_INDEX
static const WCHAR parentClassW[]
static WNDPROC syslink_oldproc
static HWND create_syslink(DWORD style, HWND parent)
static const struct message parent_visible_syslink_wnd_seq[]
#define LM_GETIDEALHEIGHT
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
static void unload_v6_module(ULONG_PTR cookie, HANDLE hCtx)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define WM_CTLCOLORSTATIC
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
#define GetWindowLongPtrW
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int)
LONG WINAPI SetWindowLongA(_In_ HWND, _In_ int, _In_ LONG)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
HWND WINAPI GetDesktopWindow(void)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define SetWindowLongPtrW
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI DestroyWindow(_In_ HWND)