|
-
October 3rd, 2005, 04:06 AM
#1
tooltip delay time
I am not using a CToolTipCtrl. Is there any way I can change the tooltip initial delay time. I think it's 1000ms now, but I want it to be much faster.
greets,
timv
-
October 3rd, 2005, 04:16 AM
#2
Re: tooltip delay time
what about ::SendMessage(..) with TTM_SETDELAYTIME ?
Cheers
-
October 3rd, 2005, 04:32 AM
#3
Re: tooltip delay time
i tried
Code:
//in CMainFrame:
::SendMessage(m_wndToolBar.GetToolBarCtrl().m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
::SendMessage(m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
::SendMessage(m_wndToolBar.m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
but nothing changes (it's still like 1000ms).
timv
-
October 3rd, 2005, 04:54 AM
#4
Re: tooltip delay time
well if you set a tool tip to the m_wndToolBar which is CToolBar accroding your code so did you try something like that?
Code:
m_wndToolBar.GetToolBarCtrl().GetToolTips()->SetDelayTime(10);
Cheers
-
October 3rd, 2005, 05:02 AM
#5
Re: tooltip delay time
 Originally Posted by golanshahar
well if you set a tool tip to the m_wndToolBar which is CToolBar accroding your code so did you try something like that?
Code:
m_wndToolBar.GetToolBarCtrl().GetToolTips()->SetDelayTime(10);
Cheers
Yes, that's what I tried first, but since I do not use CToolTipCtrls, the GetToolTips() function returns NULL;
To be honest, I don't really get why the tooltips come up in the first place. I believe it's not necessary to use the CToolTipCtrl. I dó have CStrings attached to the toolbarbuttons (TBBUTTONs).
So, does someone know how to do this when not using the CTooltipCtrl.
timv
Last edited by timv; October 3rd, 2005 at 07:17 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|