(resend)comctl32:TTM_SETTOOLINFO does not change subclassing

Alexandre Julliard julliard at winehq.org
Fri Apr 24 07:14:42 CDT 2015


Aric Stewart <aric at 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.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list