#include "wine/test.h"
#include <stdio.h>
#include <windows.h>
#include <commctrl.h>
#include <uxtheme.h>
#include <undocuser.h>
#include <msgtrace.h>
#include <user32testhelpers.h>
Go to the source code of this file.
◆ _CreateV5ActCtx()
Definition at line 17 of file toolbar.c.
18{
19 ACTCTXW
ActCtx = {
sizeof(ACTCTX)};
21
26
28
30}
static const WCHAR separator[]
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
_In_ PCWSTR _Out_ PVOID * ActCtx
Referenced by START_TEST().
◆ START_TEST()
Definition at line 238 of file toolbar.c.
239{
241
243
248
251 if (hV5ActCtx)
252 {
255 if (bActivated)
256 {
259 }
260 }
261}
#define INVALID_HANDLE_VALUE
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
◆ TestButtonSpacing()
void TestButtonSpacing |
( |
| ) |
|
Definition at line 174 of file toolbar.c.
175{
179
180 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
182
185 ok (lres == 0,
"Got %d result\n", (
int)lres);
188
192 ok (lres == 0,
"Got %lu result\n", lres);
198}
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
#define TOOLBARCLASSNAMEW
#define TBMF_BUTTONSPACING
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)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by START_TEST().
◆ TestPadding()
Definition at line 99 of file toolbar.c.
100{
103
104 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
106
108 ok(bsize == 0x60007,
"Expected 0x60007 got %lx\n", bsize);
109
113
115 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
116
118 ok(bsize == 0x20002 || bsize == 0xe0002,
"Expected 0x20002 got %lx\n", bsize);
119
120#if 0
122
124 ok(bsize == 0x20002,
"Expected 0x20002 got %lx\n", bsize);
125
127 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
128
130
132 ok(bsize == 0x160006,
"Expected 0x160006 got %lx\n", bsize);
133
135 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
136
140
142 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
143
145 ok(bsize == 0x160006,
"Expected 0x160006 got %lx\n", bsize);
146
150
152 ok(bsize == 0x170007,
"Expected 0x170007 got %lx\n", bsize);
153
157
159 ok(bsize == 0x170008,
"Expected 0x170008 got %lx\n", bsize);
160
164
166
167
168 ok(bsize == 0x1a0016,
"Expected 0x1a0016 got %lx\n", bsize);
169#endif
170
172}
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
BOOL WINAPI DestroyWindow(_In_ HWND)
Referenced by START_TEST().
◆ TestSetButtonSize()
void TestSetButtonSize |
( |
| ) |
|
Definition at line 65 of file toolbar.c.
66{
69
70 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
72
74 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
75
78 ok(bsize == 0x160018,
"Expected 0x160018 got %lx\n", bsize);
79
82 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
83
86 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
87
90 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
91
94 ok(bsize == 0x170017,
"Expected 0x170017 got %lx\n", bsize);
95
97}
Referenced by START_TEST().
◆ TestV5VersionMessage()
void TestV5VersionMessage |
( |
| ) |
|
Definition at line 200 of file toolbar.c.
201{
204
205 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
207
210
213
216
219
222
225
228
231
234
236}
static const WCHAR version[]
Referenced by START_TEST().
◆ TestVersionMessage()
void TestVersionMessage |
( |
| ) |
|
Definition at line 33 of file toolbar.c.
34{
37
38 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
40
43
46
49
52
55
58
61
63}
Referenced by START_TEST().