Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Tool tips on Status bar created on a dialog

Tool tips on Status bar created on a dialog

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocomhelpannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Craig Hewitt
    wrote on last edited by
    #1

    Hello All! I have been tasked with writing a dialog based application that must include a menu, tool bar and status bar. Being CFormView based is not an option. I have everything working beautifully except 2 items: 1. Tool tips do not display correctly on the status bar panes. 2. I need to resize the dialog once the tool bar or status bar are turned off. I only need help with #1 as I have not even worked on #2 yet. I have a normal CStatusBar derived from a class described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.71).aspx[^] The dialog has a base class as described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.80).aspx[^] What happens when hovering over any of the status bar panes is you get a tool tip centered horizontally over the status bar that simply says "Toggle Status Bar". I am seeing the TTN_NEEDTEXT message fire with control ID 59393 which is AFX_IDW_STATUS_BAR. All of the update commands, tool tips and message strings work for the menus and tool bars as well as the update handlers for the status bar, it is just the tool tips for the status bar that do not work. Any help is greatly appreciated. Craig

    J 1 Reply Last reply
    0
    • C Craig Hewitt

      Hello All! I have been tasked with writing a dialog based application that must include a menu, tool bar and status bar. Being CFormView based is not an option. I have everything working beautifully except 2 items: 1. Tool tips do not display correctly on the status bar panes. 2. I need to resize the dialog once the tool bar or status bar are turned off. I only need help with #1 as I have not even worked on #2 yet. I have a normal CStatusBar derived from a class described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.71).aspx[^] The dialog has a base class as described here: http://msdn.microsoft.com/en-us/library/ccstww6w(v=vs.80).aspx[^] What happens when hovering over any of the status bar panes is you get a tool tip centered horizontally over the status bar that simply says "Toggle Status Bar". I am seeing the TTN_NEEDTEXT message fire with control ID 59393 which is AFX_IDW_STATUS_BAR. All of the update commands, tool tips and message strings work for the menus and tool bars as well as the update handlers for the status bar, it is just the tool tips for the status bar that do not work. Any help is greatly appreciated. Craig

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      Have a look at the article StatusBarACT[^] and the source code to add the tool tip related code to your CStatusBar derived class.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups