-
November 11th, 2008, 07:01 PM
#1
How do I retrieve the tooltip text for a particular button in a toolbar?
How do I retrieve the tooltip text for a particular button in a toolbar?
-
November 11th, 2008, 07:55 PM
#2
Re: How do I retrieve the tooltip text for a particular button in a toolbar?
as far as I know, the tooltip text is something the application implements itself and has no native support by the toolbar control itself.
Is yours a SDI/MDI type of application that hosts a toolbar?
Also, what is the reason you are interested in this information? Perhaps there are other ways of gettign to the same information?
-
November 11th, 2008, 11:13 PM
#3
Re: How do I retrieve the tooltip text for a particular button in a toolbar?
It is an MDI application...
I am building a context menu where each item in the menu represents a button on the toolbar. I use this menu to hide or reveal buttons on the toolbar (for configurable toolbars). I can retrieve the text from the main menu for the function having the same ID but I was hoping to use the button tooltip so this function would ONLY be reliant on the toolbar itself.
-
November 12th, 2008, 04:39 AM
#4
Re: How do I retrieve the tooltip text for a particular button in a toolbar?
Originally Posted by sford
How do I retrieve the tooltip text for a particular button in a toolbar?
You can only retrieve it if you have set it. And if you have set it then the tooltip text is the "second" part (after the '\n' delimiter) in the string resource with the toolbar button ID.
So load this string (CString:.LoadString) and extract the part after '\n'
Victor Nijegorodov
-
November 12th, 2008, 12:23 PM
#5
Re: How do I retrieve the tooltip text for a particular button in a toolbar?
Thanks!!! That worked perfectly!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|