03-04-2013, 06:19 PM
Hi Gintaras,
I know from your last answer that you can dynamically change the text of the tooltips through Tooltip.Update but what about turning tooltips on/off or changing the delay time or the x,y distance from their control, not just at creation but later dynamically depending on other situations.
I see in __Tooltip.Create there are these SendMessage features:
but I am not sure how I would address these dynamically (or at creation).
Thanks again,
S
I know from your last answer that you can dynamically change the text of the tooltips through Tooltip.Update but what about turning tooltips on/off or changing the delay time or the x,y distance from their control, not just at creation but later dynamically depending on other situations.
I see in __Tooltip.Create there are these SendMessage features:
int tts=TTS_NOPREFIX
if(flags&1) tts|TTS_ALWAYSTIP
if(flags&2) tts|TTS_BALLOON
htt=CreateWindowExW(WS_EX_TRANSPARENT L"tooltips_class32" 0 tts 0 0 0 0 hwnd 0 _hinst 0)
SendMessage htt TTM_ACTIVATE 1 0
SendMessage htt TTM_SETMAXTIPWIDTH 0 600
if(timeToShow) SendMessage htt TTM_SETDELAYTIME TTDT_AUTOPOP timeToShow*1000
but I am not sure how I would address these dynamically (or at creation).
Thanks again,
S