Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMH, LRESULT *pResult);
BOOL CGridCtrl::OnToolTipNotify
NMHDR *pNMH,
LRESULT *pResult)
{
LPTOOLTIPTEXT lpttt;
lpttt = (LPTOOLTIPTEXT)pNMH;
.
.
.
}
BOOL CGridCtrl::PreTranslateMes
{
switch(pMsg->message)
{
case WM_LBUTTONDOWN:
case WM_MOUSEMOVE:
case WM_LBUTTONUP:
case WM_MBUTTONDOWN:
case WM_MBUTTONUP:
case WM_RBUTTONDOWN:
case WM_RBUTTONUP:
if (m_pToolTip)
{
CPoint ptCurrentPos;
//
// offset the current position by the
// amount the window is scrolled
//
ptCurrentPos.x = LOWORD(pMsg->lParam);
ptCurrentPos.y = HIWORD(pMsg->lParam);
if (m_rectSearch.PtInRect(ptC
{
m_pToolTip->Activate(FALSE
}
// this will reactivate the tooltip
m_pToolTip->Activate(TRUE)
m_pToolTip->RelayEvent(pMs
}
}
return CWnd::PreTranslateMessage(
} // end PreTranslateMessage