Tooltips on a CToolbar
-
I am having trouble getting the tooltips to come up for on a toolbar. The toolbar is on a dialog. I create the toolbar like, with the CBRS_TOOLTIPS flag. if(!m_wndToolBar.Create(this, WS_CHILD|WS_VISIBLE|CBRS_TOP|CBRS_TOOLTIPS) || !m_wndToolBar.LoadToolBar(IDR_TOOL_BAR)) ASSERT(FALSE); I then handle the message ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify) ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify) The OnToolTipNotify function looks like BOOL CApply::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult ) { TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR; UINT nID =pNMHDR->idFrom; strcpy(pTTT->szText, "Click Here - Test"); return TRUE; } It comes to the OnToolTipNotify but when the tooltip pops up it gives me a bunch of boxes and junk with no text. Can anybody see something wrong? Thanks