CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1

    Different tooltip for same button????

    How can I display diferent tooltips for same button? e.g in an SDI app with two views I want to display separate tooltip for same buuton in each view.

  2. #2
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113
    I have not worked much with tooltips, but i think by associationg your tooltip with a string resource and handling its OnUpdate command handler (just as in case of a statusbar pane string resource) you can use it.
    CToolTipCtrl also has a 'UpdateToolInfo' method you can use that.

    Amit

  3. #3
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    Are u talkiing about the tooltip for a toolbar button ?

  4. #4
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917
    Handle TTN_NEEDTEXTx messages in a views.

    Probably changing tooltip will also require overriding status bar message string.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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