(resend)comctl32:TTM_SETTOOLINFO does not change subclassing

Aric Stewart aric at codeweavers.com
Fri Apr 24 07:40:29 CDT 2015


On 4/24/15 7:14 AM, Alexandre Julliard wrote:
> 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.
> 

Thanks, resent.

-aric



More information about the wine-devel mailing list