// In Header File CToolTipCtrl* m_pGrpToolTip; CCheckListBox m_listGrpBox; BOOL m_bOutside; // In Init Dialog m_pGrpToolTip = new CToolTipCtrl(); EnableToolTips(TRUE); //create tool tip object m_pGrpToolTip->Create(this); m_pGrpToolTip->AddTool(&m_listGrpBox); m_pGrpToolTip->Activate(true); void CEffectDlg::OnMouseMove(UINT nFlags, CPoint point) { SetCapture(); UINT uCurItem = m_listGrpBox.ItemFromPoint(point, m_bOutside); CString test; if (!m_bOutside) { m_listGrpBox.GetText(uCurItem , test); m_pGrpToolTip->UpdateTipText(test, &m_listGrpBox); ReleaseCapture(); } CDialog::OnMouseMove(nFlags, point); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)