24 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
27 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
30 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
33 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
36 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
45 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
49 ok (htheme1 !=
NULL,
"OpenThemeData failed\n");
51 skip(
"Theme not active\n");
54 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
57 ok (htheme2 ==
NULL,
"Expected OpenThemeData to fail\n");
60 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
63 ok (htheme2 ==
NULL,
"Expected OpenThemeData to fail\n");
66 ok (
hr ==
S_OK,
"Expected S_OK got 0x%lx error\n",
hr);
71 ok (htheme2 !=
NULL,
"OpenThemeData failed\n");
72 ok(htheme1 != htheme2,
"Expected different theme data\n");
76 skip(
"Theme not active\n");
84 hwnd =
CreateWindowW(
L"button",
L"Test window",
WS_OVERLAPPEDWINDOW |
WS_VISIBLE, 100, 100, 200, 200, 0,
NULL,
NULL,
NULL);
85 ok (
hwnd !=
NULL,
"Expected CreateWindowW to succeed\n");
void TestTheme(HWND hwnd)
void TestParams(HWND hwnd)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
BOOL WINAPI IsThemeActive(void)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
#define WS_OVERLAPPEDWINDOW
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)