#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.
19 ACTCTXW
ActCtx = {
sizeof(ACTCTX)};
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
static const WCHAR separator[]
_In_ PCWSTR _Out_ PVOID * ActCtx
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 238 of file toolbar.c.
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
#define INVALID_HANDLE_VALUE
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
◆ TestButtonSpacing()
void TestButtonSpacing |
( |
| ) |
|
Definition at line 174 of file toolbar.c.
180 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
185 ok (lres == 0,
"Got %d result\n", (
int)lres);
192 ok (lres == 0,
"Got %lu result\n", lres);
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.
104 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
108 ok(bsize == 0x60007,
"Expected 0x60007 got %lx\n", bsize);
115 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
118 ok(bsize == 0x20002 || bsize == 0xe0002,
"Expected 0x20002 got %lx\n", bsize);
124 ok(bsize == 0x20002,
"Expected 0x20002 got %lx\n", bsize);
127 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
132 ok(bsize == 0x160006,
"Expected 0x160006 got %lx\n", bsize);
135 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
142 ok(bsize == 0x10001,
"Expected 0x10001 got %lx\n", bsize);
145 ok(bsize == 0x160006,
"Expected 0x160006 got %lx\n", bsize);
152 ok(bsize == 0x170007,
"Expected 0x170007 got %lx\n", bsize);
159 ok(bsize == 0x170008,
"Expected 0x170008 got %lx\n", bsize);
168 ok(bsize == 0x1a0016,
"Expected 0x1a0016 got %lx\n", bsize);
#define TOOLBARCLASSNAMEW
BOOL WINAPI DestroyWindow(_In_ HWND)
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
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().
◆ TestSetButtonSize()
void TestSetButtonSize |
( |
| ) |
|
Definition at line 65 of file toolbar.c.
70 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
74 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
78 ok(bsize == 0x160018,
"Expected 0x160018 got %lx\n", bsize);
82 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
86 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
90 ok(bsize == 0x160017,
"Expected 0x160017 got %lx\n", bsize);
94 ok(bsize == 0x170017,
"Expected 0x170017 got %lx\n", bsize);
#define TOOLBARCLASSNAMEW
BOOL WINAPI DestroyWindow(_In_ HWND)
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().
◆ TestV5VersionMessage()
void TestV5VersionMessage |
( |
| ) |
|
Definition at line 200 of file toolbar.c.
205 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
#define TOOLBARCLASSNAMEW
BOOL WINAPI DestroyWindow(_In_ HWND)
static const WCHAR version[]
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().
◆ TestVersionMessage()
void TestVersionMessage |
( |
| ) |
|
Definition at line 33 of file toolbar.c.
38 hwnd =
CreateWindowExW(0,
TOOLBARCLASSNAMEW,
L"Test", 0, 0, 0, 0, 0, 0, 0, 0,
NULL);
#define TOOLBARCLASSNAMEW
BOOL WINAPI DestroyWindow(_In_ HWND)
static const WCHAR version[]
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().