CToolTipCtrl problem
- From: "Nord Pierre" <non>
- Date: Tue, 18 Mar 2008 17:33:27 +0100
Hello,
I have a problem with CToolTipCtrl, i use it like that :
class myButton : public CButton
{
public:
[..........]
public:
CToolTipCtrl m_tooltip;
};
BOOL CmyButton::PreTranslateMessage(MSG *pMsg)
{
m_tooltip.RelayEvent(pMsg);
return CButton::PreTranslateMessage(pMsg);
}
void CmyButton::SetToolTip(CString s)
{
m_tooltip.Create(this,TTS_ALWAYSTIP);
m_tooltip.AddTool(this,s);
m_tooltip.Activate(TRUE);
}
It works, but only once ! If i click on the button, the tooltip never
appear again, or if i let the mouse without moving, the balloon "pop" and
can't be redraw again. I have of course try
SetDelayTime(TTDT_AUTOPOP,10000000) for fun, but it doesn't work
Anyone have an idea ?
Thanks
.
- Follow-Ups:
- Re: CToolTipCtrl problem
- From: David Ching
- Re: CToolTipCtrl problem
- From: AliR \(VC++ MVP\)
- Re: CToolTipCtrl problem
- Prev by Date: Re: How do you declare a Global Variable in VC++6
- Next by Date: Re: Vista registry programming
- Previous by thread: Re: CEdit SetWindowText rediculously slow
- Next by thread: Re: CToolTipCtrl problem
- Index(es):