CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    128

    Tooltips and Dialog Bars

    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 (?)



  2. #2
    Join Date
    May 1999
    Posts
    40

    Re: Tooltips and Dialog Bars

    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


  3. #3
    Join Date
    May 1999
    Posts
    128

    Re: Tooltips and Dialog Bars

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured