I want to show tooltips when the user has the cursor over the dialog controls, so firstly I call EnableToolTips(),
Then I call the tooltipOnNotify, for some reason it only gets into the OnToolTipNotify function for certain controls & won't get into the function when the cursor is over a check box or a static control or a radio button...., so the question is what do I have to do to get the tooltip over all controls
ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)

BOOL CDialog::OnToolTipNotify(UINT id, NMHDR *pNMHDR,LRESULT *pResult)
{

TOOLTIPTEXTA *pTTTA = (TOOLTIPTEXTA *)pNMHDR;
TOOLTIPTEXTW *pTTTW = (TOOLTIPTEXTW *)pNMHDR;
CString strTipText;
UINT nID = pNMHDR->idFrom;

if (pNMHDR->code == TTN_NEEDTEXTA && (pTTTA->uFlags & TTF_IDISHWND) ||
pNMHDR->code == TTN_NEEDTEXTW && (pTTTW->uFlags & TTF_IDISHWND))
{
// idFrom is actually the HWND of the tool
nID = ::GetDlgCtrlID((HWND)nID);
}

if (nID != 0) // will be zero on a separator
strTipText.Format("Control ID = %d", nID);

*pResult = 0;
if (pNMHDR->code == TTN_NEEDTEXTA)
{
lstrcpyn(pTTTA->szText, strTipText, sizeof(pTTTA->szText));
}else //unicode
{
_mbstowcsz(pTTTW->szText, strTipText, sizeof(pTTTW->szText));
}

return TRUE; // message was handled

}