|
-
March 31st, 1999, 08:53 AM
#1
I want to use CToolTipCtrl in CMyWnd derived from CFrameWnd
Hello!
I'm korean student.
I want to use CToolTipCtrl in MyWnd derived from CFrameWnd.
The window has many region for tips.
and Tiptext can change dynamicaly.
1. m_ToolTip.Create(this, TTS_ALWAYSTIP);
2. m_ToolTip.AddTool(this);
3. If mouse pointer is in particular region call
m_ToolTip.Activate(TRUE);
m_ToolTip.UpdateTipText("Hello",(CWnd*)this);
else
m_ToolTip.Activate(FALSE);
4. For dynamic text change, call
m_ToolTip.UpdateTipText("Hello",(CWnd*)this);
What is wrong?
Help...
thank you...
-
March 31st, 1999, 10:59 AM
#2
Re: I want to use CToolTipCtrl in CMyWnd derived from CFrameWnd
You need an additional event:
BOOL CSomething::PreTranslateMessage(MSG* pMsg)
{
m_ToolTip.RelayEvent(pMsg);
return CControlBar::PreTranslateMessage(pMsg);
}
-
April 2nd, 1999, 09:47 AM
#3
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
|