When you send TTM_UPDATETIPTEXTW, the Tooltip calls again SetWindowPos...
Tooltip update text problem?
Hi,
after initializing the tooltip, can I use SetWindowPos?
The code I use is as follows:
auto x=::SendMessage(hwnd, TTM_TRACKPOSITION, (WPARAM)0,
(LPARAM)MAKELONG(rectTip.left, rectTip.top));
x=::SendMessage(hwnd, TTM_TRACKACTIVATE, (WPARAM)TRUE, (LPARAM)&ti);
SetWindowPos(hwnd, 0, 200, 300, 0, 0, SWP_NOSIZE);
ti.lpszText = (LPTSTR)L"Update text content";
x = SendMessage(hwnd, TTM_UPDATETIPTEXTW, 0, (LPARAM)&ti);
my problem is:
after using TTM_UPDATETIPTEXTW, the tooltip didn't stay at the position by SetWindowPos but it reverted back to the position by TTM_Trackposition.
is there a way to setup tooltip base position by SetWindowPos ?
Thanks in advance.
Windows development | Windows API - Win32
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.