27 #define NUM_MSG_SEQUENCES 1 28 #define PAGER_SEQ_INDEX 0 39 static CHAR large_a[] =
"You should have received a copy of the GNU Lesser General Public License along with this ...";
42 'Y',
'o',
'u',
' ',
's',
'h',
'o',
'u',
'l',
'd',
' ',
'h',
'a',
'v',
'e',
' ',
'r',
'e',
'c',
'e',
'i',
'v',
'e',
43 'd',
' ',
'a',
' ',
'c',
'o',
'p',
'y',
' ',
'o',
'f',
' ',
't',
'h',
'e',
' ',
'G',
'N',
'U',
' ',
'L',
'e',
's',
44 's',
'e',
'r',
' ',
'G',
'e',
'n',
'e',
'r',
'a',
'l',
' ',
'P',
'u',
'b',
'l',
'i',
'c',
' ',
'L',
'i',
'c',
'e',
45 'n',
's',
'e',
' ',
'a',
'l',
'o',
'n',
'g',
' ',
'w',
'i',
't',
'h',
' ',
't',
'h',
'i',
's',
' ',
'.',
'.',
'.', 0
49 'Y',
'o',
'u',
' ',
's',
'h',
'o',
'u',
'l',
'd',
' ',
'h',
'a',
'v',
'e',
' ',
'r',
'e',
'c',
'e',
'i',
'v',
50 'e',
'd',
' ',
'a',
' ',
'c',
'o',
'p',
'y',
' ',
'o',
'f',
' ',
't',
'h',
'e',
' ',
'G',
'N',
'U',
' ',
'L',
51 'e',
's',
's',
'e',
'r',
' ',
'G',
'e',
'n',
'e',
'r',
'a',
'l',
' ',
'P',
'u',
'b',
'l',
'i',
'c', 0
55 'Y',
'o',
'u',
' ',
's',
'h',
'o',
'u',
'l',
'd',
' ',
'h',
'a',
'v',
'e',
' ',
'r',
'e',
'c',
'e',
56 'i',
'v',
'e',
'd',
' ',
'a',
' ',
'c',
'o',
'p',
'y',
' ',
'o',
'f',
' ',
't',
'h',
'e',
' ',
'G',
57 'N',
'U',
' ',
'L',
'e',
's',
's',
'e',
'r',
' ',
'G',
'e',
'n',
'e',
'r',
'a',
'l',
' ',
'P',
'u',
58 'b',
'l',
'i',
'c',
' ',
'L',
'i',
'c',
'e',
'n',
's',
'e',
' ',
'a',
'l',
'o',
'n',
'g',
' ',
'w' 188 {
NULL, 0,
NULL,
NULL,
test_w, -1,
test_w,
NULL,
test_a,
test_w,
sizeof(
test_w)},
189 {
NULL, 0,
NULL,
NULL,
empty_w, -1,
empty_w,
NULL,
empty_a,
NULL, 0,
test_w},
295 static LONG defwndproc_counter = 0;
340 defwndproc_counter++;
342 defwndproc_counter--;
369 return CreateWindowA(
"Pager test parent class",
"Pager test parent window",
403 static LONG defwndproc_counter;
409 if (defwndproc_counter)
423 defwndproc_counter++;
425 defwndproc_counter--;
453 ok(pager !=
NULL,
"Fail to create pager\n");
503 ok(pager !=
NULL,
"failed to create pager control\n");
514 ok(pager !=
NULL,
"failed to create pager control\n");
529 case WM_NOTIFYFORMAT:
547 static const WCHAR class_w[] = {
'P',
'a',
'g',
'e',
'r',
' ',
'n',
'o',
't',
'i',
'f',
'y',
'f',
548 'o',
'r',
'm',
'a',
't',
' ',
'c',
'l',
'a',
's',
's', 0};
559 static const WCHAR class_w[] = {
'P',
'a',
'g',
'e',
'r',
' ',
'n',
'o',
't',
'i',
'f',
'y',
'f',
560 'o',
'r',
'm',
'a',
't',
' ',
'c',
'l',
'a',
's',
's', 0};
561 static const WCHAR parent_w[] = {
'p',
'a',
'r',
'e',
'n',
't', 0};
562 static const WCHAR pager_w[] = {
'p',
'a',
'g',
'e',
'r', 0};
563 static const WCHAR child_w[] = {
'c',
'h',
'i',
'l',
'd', 0};
571 ok(bret,
"Register test class failed, error 0x%08x\n",
GetLastError());
576 parent =
CreateWindowW(class_w, parent_w,
WS_OVERLAPPED, 0, 0, 100, 100, 0, 0,
GetModuleHandleW(0), 0);
578 pager =
CreateWindowW(
WC_PAGESCROLLERW, pager_w,
WS_CHILD, 0, 0, 100, 100,
parent, 0,
GetModuleHandleW(0), 0);
579 ok(pager !=
NULL,
"CreateWindow failed\n");
580 child =
CreateWindowW(class_w, child_w,
WS_CHILD, 0, 0, 100, 100, pager, 0,
GetModuleHandleW(0), 0);
639 ok(*text_max == send_data->
send_text_max,
"Code 0x%08x test 0x%08x sub test %d expect %d, got %d\n",
650 ok(*text_max ==
receive_data->send_text_max,
"Code 0x%08x test 0x%08x sub test %d expect %d, got %d\n",
681 if (
data->expect_sztext)
692 if (
data->expect_pszformat)
703 static const WCHAR test[] = {
't',
'e',
's',
't', 0};
721 skip(
"Notification code mismatch, skipping lParam check\n");
909 ok(0,
"Unexpected message 0x%08x\n",
hdr->code);
916 case WM_NOTIFYFORMAT:
949 ok(
hdr->code == code_change ? ansi : unicode,
"Expect 0x%08x, got 0x%08x\n",
hdr->code,
950 code_change ? ansi : unicode);
1018 if (
data->send_text)
1025 if (
data->return_text)
1028 ok(!
lstrcmpW(
data->return_text, *para->
text),
"Code 0x%08x sub test %d expect %s, got %s\n",
1035 ok(
data->return_text_max == *para->
text_max,
"Code 0x%08x sub test %d expect %d, got %d\n",
1057 ok(!*para->
text,
"Expect null text\n");
1066 memset(&nmcbedb, 0,
sizeof(nmcbedb));
1072 memset(&nmcbeed, 0,
sizeof(nmcbeed));
1089 memset(&nmdtf, 0,
sizeof(nmdtf));
1093 if (
data->return_szdisplay)
1094 ok(!
lstrcmpW(nmdtf.szDisplay,
data->return_szdisplay),
"Sub test %d expect %s, got %s\n",
i,
1096 if (
data->return_pszdisplay)
1097 ok(!
lstrcmpW(nmdtf.pszDisplay,
data->return_pszdisplay),
"Sub test %d expect %s, got %s\n",
i,
1143 memset(&nmttdi, 0,
sizeof(nmttdi));
1147 if (
data->return_sztext)
1149 if (
data->return_sztext_size == -1)
1150 ok(!
lstrcmpW(nmttdi.szText,
data->return_sztext),
"Sub test %d expect %s, got %s\n",
i,
1153 ok(!
memcmp(nmttdi.szText,
data->return_sztext,
data->return_sztext_size),
"Wrong szText content\n");
1155 if (
data->return_lpsztext)
1158 ok(nmttdi.lpszText ==
data->return_lpsztext,
"Sub test %d expect %s, got %s\n",
i,
1161 ok(!
lstrcmpW(nmttdi.lpszText,
data->return_lpsztext),
"Test %d expect %s, got %s\n",
i,
1164 if (
data->return_hinst)
1165 ok(nmttdi.hinst ==
data->return_hinst,
"Sub test %d expect %p, got %p\n",
i,
data->return_hinst,
1289 ok(bret,
"Register test class failed, error 0x%08x\n",
GetLastError());
1291 parent =
CreateWindowA(
class,
"parent",
WS_OVERLAPPED, 0, 0, 100, 100, 0, 0,
GetModuleHandleA(0), 0);
1293 pager =
CreateWindowA(
WC_PAGESCROLLERA,
"pager",
WS_CHILD, 0, 0, 100, 100,
parent, 0,
GetModuleHandleA(0), 0);
1294 ok(pager !=
NULL,
"CreateWindow failed\n");
1295 child1_wnd =
CreateWindowA(
class,
"child",
WS_CHILD, 0, 0, 100, 100, pager, (
HMENU)1,
GetModuleHandleA(0), 0);
1316 #define X(f) p##f = (void*)GetProcAddress(mod, #f); 1329 iccex.
dwSize =
sizeof(iccex);
1331 pInitCommonControlsEx(&iccex);
#define CBEN_GETDISPINFOW
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define HDN_ITEMSTATEICONCLICK
#define LVN_INCREMENTALSEARCHA
WCHAR szText[CBEMAXSTRLEN]
#define TVN_ITEMEXPANDEDW
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define HDN_ITEMCHANGINGA
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define TVN_ITEMEXPANDEDA
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
char * wine_dbgstr_w(const wchar_t *wstr)
int WINAPI lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2)
static const struct pixel_format_desc formats[]
GLenum GLuint GLenum GLsizei const GLchar * message
int WINAPI lstrcmpA(LPCSTR lpString1, LPCSTR lpString2)
DWORD WINAPI GetLastError(VOID)
char szText[CBEMAXSTRLEN]
BOOL WINAPI DestroyWindow(_In_ HWND)
#define HDN_ITEMCHANGINGW
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
#define CBEN_GETDISPINFOA
static void * heap_alloc(size_t len)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HDN_OVERFLOWCLICK
LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define ICC_PAGESCROLLER_CLASS
#define TVN_ENDLABELEDITW
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
char szText[CBEMAXSTRLEN]
#define TBN_GETBUTTONINFOA
LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int)
static UINT WPARAM LPARAM lparam
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
static void init_msg_sequences(struct msg_sequence **seq, int n)
#define TVN_ITEMEXPANDINGW
#define HDN_ITEMDBLCLICKW
#define TBN_GETBUTTONINFOW
#define LVN_BEGINLABELEDITW
#define GetWindowLongPtrA
#define IS_INTRESOURCE(i)
#define TVN_ENDLABELEDITA
#define WM_WINDOWPOSCHANGING
#define ok_sequence(seq, index, exp, contx, todo)
const char * wine_dbgstr_rect(const RECT *rect)
#define HDN_BEGINFILTEREDIT
unsigned __int3264 UINT_PTR
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
#define memcpy(s1, s2, n)
#define SetWindowLongPtrA
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HDN_ENDFILTEREDIT
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
#define TVN_BEGINLABELEDITW
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HWND WINAPI GetParent(_In_ HWND)
#define HDN_DIVIDERDBLCLICKA
int WINAPI lstrlenA(LPCSTR lpString)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define LVN_ENDLABELEDITW
#define LVN_ENDLABELEDITA
static void flush_sequences(struct msg_sequence **seq, int n)
#define LVN_BEGINLABELEDITA
#define HDN_DIVIDERDBLCLICKW
#define WM_WINDOWPOSCHANGED
#define TVN_BEGINLABELEDITA
BOOL WINAPI IsWindowVisible(_In_ HWND)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
static int receive_data(SOCKET sock, SecBuffer *buf)
#define GetProcAddress(x, y)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI UnregisterClassA(_In_ LPCSTR, HINSTANCE)
#define LVN_INCREMENTALSEARCHW
#define HDN_ITEMDBLCLICKA
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
WCHAR szText[CBEMAXSTRLEN]
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
static UINT WPARAM wparam
#define TVN_ITEMEXPANDINGA