Hover text in MFC?

This is a discussion on Hover text in MFC? within the Windows Programming forums, part of the Platform Specific Boards category; How would I go about displaying hover text when going over a tool item? say your in IE (or whatever ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    162

    Hover text in MFC?

    How would I go about displaying hover text when going over a tool item? say your in IE (or whatever browser), and you throw your mouse over the back button, and it'll hover "Back to Cboard bla bla"....How can I do that using MFC? thx.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    For toolbars or menu items, MFC does it for you if you place the right string resources. For example, for the button IDC_DOSOMETHING, add a string resource with the ID IDC_DOSOMETHING that contains "String1\nString2". String1 will be displayed in the status bar, String2 in a tool tip.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    162
    that did it...thanx alot.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  2. Replies: 3
    Last Post: 05-25-2005, 02:50 PM
  3. Static Text In MFC
    By Unregistered in forum Windows Programming
    Replies: 0
    Last Post: 05-25-2002, 03:41 PM
  4. MFC: Multi-threaded DLL Errors & Related Syntax :: C++
    By kuphryn in forum C++ Programming
    Replies: 3
    Last Post: 02-13-2002, 09:02 AM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21