F
flaviu_
Guest
Hi. I intend to use CMFCTooltipCtrl in my CView when a specific message is coming, something like that:
LRESULT CMyView::OnSomeMessage(WPARAM wParam, LPARAM lParam)
{
TRACE(">>>>>>>>>%d|%d\n", wParam, lParam);
if(lParam > 0 && lParam < 1000)
m_ToolTipCtrl.Pop();
return 1;
}
where m_TollTipCtrl is CMFCToolTipCtrl.
Inside my OnInit I have:
void CMyView::OnInitialUpdate()
{
CView::OnInitialUpdate();
EnableToolTips();
m_ToolTipCtrl.Create(this, WS_POPUP | TTS_NOPREFIX | TTS_BALLOON | TTS_ALWAYSTIP);
m_ToolTipCtrl.AddTool(this, LPSTR_TEXTCALLBACK);
m_ToolTipCtrl.Activate(TRUE);
m_ToolTipCtrl.SetDelayTime(TTDT_AUTOPOP, -1);
m_ToolTipCtrl.SetDelayTime(TTDT_INITIAL, 0);
m_ToolTipCtrl.SetDelayTime(TTDT_RESHOW, 0);
but seem is not enough ... because I see to tooltip ... can you help me ?
Continue reading...
LRESULT CMyView::OnSomeMessage(WPARAM wParam, LPARAM lParam)
{
TRACE(">>>>>>>>>%d|%d\n", wParam, lParam);
if(lParam > 0 && lParam < 1000)
m_ToolTipCtrl.Pop();
return 1;
}
where m_TollTipCtrl is CMFCToolTipCtrl.
Inside my OnInit I have:
void CMyView::OnInitialUpdate()
{
CView::OnInitialUpdate();
EnableToolTips();
m_ToolTipCtrl.Create(this, WS_POPUP | TTS_NOPREFIX | TTS_BALLOON | TTS_ALWAYSTIP);
m_ToolTipCtrl.AddTool(this, LPSTR_TEXTCALLBACK);
m_ToolTipCtrl.Activate(TRUE);
m_ToolTipCtrl.SetDelayTime(TTDT_AUTOPOP, -1);
m_ToolTipCtrl.SetDelayTime(TTDT_INITIAL, 0);
m_ToolTipCtrl.SetDelayTime(TTDT_RESHOW, 0);
but seem is not enough ... because I see to tooltip ... can you help me ?
Continue reading...