Here is the code that handles the tooltips
It works fine for all original buttons.
for the ones i copied from an other dialog, it does not work
it will not return an ID
BOOL CSend_DataDlg::OnToolTipNotify( UINT id,
NMHDR * pNMHDR,
LRESULT * pResult )
{
AFX_MODULE_THREAD_STATE* pModuleThreadState =AfxGetModuleThreadState();
{
CToolTipCtrl* pToolTip = pModuleThreadState->m_pToolTip;
if(pToolTip)
pToolTip->SetMaxTipWidth(130);
}
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
UINT CtrlHandle = pNMHDR->idFrom;
if ((pTTT->uFlags & TTF_IDISHWND))
{
UINT nID = ::GetDlgCtrlID( HWND( CtrlHandle ));
CString str;
str.Format("%i", nID);
AfxMessageBox(str);
switch( nID )
{
case IDC_MAP_1:
pTTT->lpszText = _T("Write curves of map 1");
break;
case IDC_MAP_2:
pTTT->lpszText = _T("Write curves of map 2");
break;
}
}
}