TTM_UPDATETIPTEXT don't work! |
Post Reply |
Author | |
Michl
Senior Member Joined: 14 September 2007 Status: Offline Points: 138 |
Post Options
Thanks(0)
Posted: 27 February 2014 at 9:01am |
We like to show a tooltip depends on key state.
Sample use case: Tooltip over a link (like in an internet browser). Mouse over a link shows "follow link" STRG+Mouse over a link shows "follow link a new tab" But we have serveral problems: a) if mouse is over a link and you press STRG after, the tooltip is to be destroyed!? This happends because you scan for key strokes!? (system tooltip don't hide if pressing a key)
b) if the new text was calculated in OnToolHitTest(CPoint point, TOOLINFO* pTI) and written to pTI->lpszText, the base class doesn't modify the tooltip! If I manually call TTM_UPDATETIPTEXT, I saw that the string was internally updated in array m_arrTools but no recalculation and redraw action follows (like system tooltip)!!!!!!! A manually redaw don't neither work, because the OnPaint() method reads the old string from m_toolVisible. Please support changes of tooltip text while it is displayed! Thanks |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |