Aric Stewart aric@codeweavers.com writes:
- toolInfo2.cbSize = TTTOOLINFOA_V1_SIZE;
- toolInfo2.hwnd = parent2;
- toolInfo2.uId = 0x1234ABCE;
- lResult = SendMessageA(hwndTip, TTM_GETTOOLINFOA, 0, (LPARAM)&toolInfo2);
- ok(lResult, "GetToolInfo failed\n");
- ok(!(toolInfo2.uFlags & TTF_SUBCLASS), "uFlags has subclass\n");
- wndProc = GetWindowLongPtrA(parent2, GWLP_WNDPROC);
- ok (wndProc == (DWORD)(&info_wnd_proc), "Window Proc is wrong\n");
- toolInfo2.uFlags |= TTF_SUBCLASS;
- SendMessageA(hwndTip, TTM_SETTOOLINFOA, 0, (LPARAM)&toolInfo2);
- lResult = SendMessageA(hwndTip, TTM_GETTOOLINFOA, 0, (LPARAM)&toolInfo2);
- ok(lResult, "GetToolInfo failed\n");
- ok(toolInfo2.uFlags & TTF_SUBCLASS, "uFlags does not have subclass\n");
- ok (wndProc == (DWORD)(&info_wnd_proc), "Window Proc is wrong\n");
Please use the correct types for window function pointers.