60 hWnd1 =
CreateWindowW(
L"testClass",
L"Test parent",
WS_OVERLAPPEDWINDOW |
WS_VISIBLE, 100, 100, 200, 200, 0,
NULL,
NULL,
NULL);
61 ok (
hWnd1 !=
NULL,
"Expected CreateWindowW to succeed\n");
63 hWnd2 =
CreateWindowW(
L"testClass",
L"test window",
WS_CHILD |
WS_VISIBLE, 0, 0, 100, 100,
hWnd1,
NULL,
NULL,
NULL);
64 ok (
hWnd2 !=
NULL,
"Expected CreateWindowW to succeed\n");
103 memset(&rc, 0,
sizeof(rc));
118 ok(
FALSE,
"VEHandler_1 called!\n");
136 pVEH = AddVectoredExceptionHandler(1,
VEHandler_1);
150 RemoveVectoredExceptionHandler(pVEH);
154 hWnd1 =
CreateWindowW(
L"testClass2",
L"Test parent",
WS_OVERLAPPEDWINDOW |
WS_VISIBLE, 100, 100, 200, 200, 0,
NULL,
NULL,
NULL);
155 ok (
hWnd1 !=
NULL,
"Expected CreateWindowW to succeed\n");
156 hWnd2 =
CreateWindowW(
L"testClass2",
L"test window",
WS_CHILD |
WS_VISIBLE, 0, 0, 100, 100,
hWnd1,
NULL,
NULL,
NULL);
157 ok (
hWnd2 !=
NULL,
"Expected CreateWindowW to succeed\n");
168 ok (
hdc !=
NULL,
"Expected GetDC to succeed\n");
174 ok (
hr ==
S_OK,
"Expected success got 0x%lx error\n",
hr);
177 ok (
hr ==
S_OK,
"Expected success got 0x%lx error\n",
hr);
179 pVEH = AddVectoredExceptionHandler(1,
VEHandler_2);
182 RemoveVectoredExceptionHandler(pVEH);
190 ok (
hr ==
S_FALSE,
"Expected S_FALSE got 0x%lx error\n",
hr);
192 skip(
"Theme not active\n");
196 ok (
hdc !=
NULL,
"Expected GetDC to succeed\n");
199 ok (
hr ==
S_OK,
"Expected success got 0x%lx error\n",
hr);
203 ok (
hr ==
S_FALSE,
"Expected S_FALSE got 0x%lx error\n",
hr);
205 skip(
"Theme not active\n");
static void FlushMessages()
static LONG WINAPI VEHandler_2(PEXCEPTION_POINTERS ExceptionInfo)
static int get_iwnd(HWND hWnd)
MSG_ENTRY draw_parent_chain[]
static LONG WINAPI VEHandler_1(PEXCEPTION_POINTERS ExceptionInfo)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
BOOL WINAPI IsThemeActive(void)
#define EXCEPTION_CONTINUE_SEARCH
#define RECORD_MESSAGE(...)
#define COMPARE_CACHE(msg_chain)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI UpdateWindow(_In_ HWND)
HDC WINAPI GetDC(_In_opt_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)