Tooltips in a dialog based application
-
Hi, I have a dialog based application in which i have created a toolbar . now i want to display tooltips for each of the items in the toolbar. I have tried the following : CToolTipCtrl Tips; Tips.Create(this); Tips.AddTool(GetDlgItem(ID_TEST),"Click to start transferring e-mails"); Tips.Activate(TRUE); In PretranslateMessage: Tips.RelayEvent(pMsg); i have also tried: CWnd *pwnd=AfxGetApp()->m_pMainWnd->GetDlgItem(IDR_TOOLBAR); Tips.Create(this); Tips.AddTool(pwnd->GetDlgItem(ID_TEST),"Click to start transferring e-mails"); Tips.Activate(TRUE); but to no success .... can you please help me... Thanking you Regards Satadru Karjee.
-
Hi, I have a dialog based application in which i have created a toolbar . now i want to display tooltips for each of the items in the toolbar. I have tried the following : CToolTipCtrl Tips; Tips.Create(this); Tips.AddTool(GetDlgItem(ID_TEST),"Click to start transferring e-mails"); Tips.Activate(TRUE); In PretranslateMessage: Tips.RelayEvent(pMsg); i have also tried: CWnd *pwnd=AfxGetApp()->m_pMainWnd->GetDlgItem(IDR_TOOLBAR); Tips.Create(this); Tips.AddTool(pwnd->GetDlgItem(ID_TEST),"Click to start transferring e-mails"); Tips.Activate(TRUE); but to no success .... can you please help me... Thanking you Regards Satadru Karjee.
Heelo, http://www.codeproject.com/dialog/tooltips.asp with Regards, R.Selvam