Click to See Complete Forum and Search --> : Tooltips and Dialog Bars


Paul Burns
May 26th, 1999, 09:31 PM
how do i enable tooltips for a dialog bar? i have tried calling EnableToolTips(TRUE) just after creation but the TTN_NEEDTEXT handler is never called.

Note i do not want to have to deal with a CToolTipCtrl - i have done this before with dialogs and form view's just using EnableToolTip and TTN_NEEDTEXT handler with no problems, so it must be possible to do the same with a CDialogBar (?)

Josh Handley
May 27th, 1999, 02:30 PM
You don't need to do anything special - just make sure to set the CBRS_TOOLTIPS after you create the dialog bar e.g.


pMyDialogBar->SetBarStyle(pMyDialogBar->GetBarStyle() | CBRS_TOOLTIPS);




Josh

Paul Burns
May 27th, 1999, 05:55 PM
i don't believe it! here i am stuffing around with TTN_NEEDTEXT handlers and the solution is just to modify the window style! its always the case isn't it - you never see the obvious solution till someone else points it out to you.

thanks Josh