On 2/26/2018 4:01 PM, Roman Pišl wrote:
OK. I was unfortunately unable to make this test work on Win XP, although behavior is the same, GetWindowRect() on g_hwnd_ttip returns incorrect dimensions and GetWindowRect() on hwndTip returns what is passed to CreateWindowExA(). The one randomly failed test is related probably to flush_events(), I am not sure if it does what is expected.
Yes, I fixed that by matching window style and the way parent is displayed to existing tests, and it worked on XP too.
Anyway, I manually tested how initial size is set, and it's definitely computed before TTN_SHOW, and not touched after. So for example if you resize to reduce width of balloon tooltip in TTN_SHOW handler, you get clipped balloon. I sent a patch for that, https://www.winehq.org/pipermail/wine-devel/2018-February/123359.html.
Handling return value is a separate thing, and I'll send something for it later.