On Mon, 19 Sep 2016 13:39:27 -0500 Andrew Eikum aeikum@codeweavers.com wrote:
On Mon, Sep 19, 2016 at 09:30:20PM +0300, John Found wrote:
In my program I have window with several toolbars that have to show tooltips on its buttons.
As long as the tooltips are dynamical, I am handling the TTN_NEEDTEXTW following way:
- Send message TTM_GETCURRENTTOOLW to the tooltip control in NMHDR.hwndFrom reveived.
- Determine from which toolbar the notification comes by using TOOLINFO.hwnd returned.
- Generate the tooltip text and set the TOOLTIPTEXTW.lpszText to point to the generated text.
- Return
This procedure works in Windows, but not in WINE. In WINE, TTM_GETCURRENTTOOLW always returns FALSE.
That message in Wine should only return FALSE in a few scenarios:
http://source.winehq.org/git/wine.git/blob/5a9f7ef06df15e26acf46b0210dd76973...
Check that your cbSize member is valid, and if so, maybe look into why Wine doesn't think there is a tool currently selected.
Andrew
What is the values of TTTOOLINFOW_V1_SIZE and TTTOOLINFOW_V2_SIZE? I tried to search for them, but there is some very obfuscated C code... :'(
I am using a structure with size = 28h = 40 bytes
struct TOOLINFO .cbSize dd ? .uFlags dd ? .hwnd dd ? .uId dd ? .Rect RECT .hInst dd ? .lpszText dd ? ends
It seems that Windows accepts it, but WINE not.