Recommended Posts

I''m working on a relatively complex little app that has 3 splitter windows. The window on the far right has a toolbar in the edge of its frame that I do border negotiations to accomodate the viewing of. The window on the far right is a fram with 6 views that take turns being shown, maximized.
Although I can get command messages from the toolbar docked at the right edge of the frame, I can''t get the text down at the bottom or the tooltip to show for the toolbar. The parent window is a CFrameWnd derivative so it should do it natively. I already tried overriding TTN_NEEDTEXT notification everywhere I can think of... it never gets called at all.
Has anyone else had problems with getting tooltips to show in toolbars that are docked to subframes in splitter windows, or is it just me?
Also, my mainframe toolbar will show the tooltips for the 3 report views I have, but not for the graphical views when they''re the current active windows on the right. I''ve tried notification overrides there too, no luck. I''m starting to wonder if it isn''t that the graphical views have a timer and that might interfere with the OnIdle while a graphical is the active view, but that really shouldn''t be the case.
I''m baffled.
Suggestions?
-fel

Share this post

Link to post

Share on other sites

I may have a slight bit of insight, something I found out last night working on my little board game. "Message routing" and "Command routing" are two different things. Only the WM_COMMAND messages get sent through the whole chain--from the view to the frame to the doc to the app or whatever the whole order is. All other messages look like they''re only sent to their target window. Since the tooltip stuff is latched onto WM_NOTIFY, not WM_COMMAND, I don''t think it''s routed anywhere.

I''m about 50% sure this doesn''t apply to the problem at hand, but just thought I''d throw it up in case it does. Best I can do right now.

Share this post

Link to post

Share on other sites

On a related note, has anyone ever managed to get tooltips to work for any control other than a bog standard label? (in a normal window, not toolbars) I dont seem to able to do this, despite spending weeks playing about, manually subclassing the controls etc. Nothing seems to work.

The controls I am particularly interested in getting tooltips working for are checkboxes and slider bars. I am not using MFC either, just bog standard common or garden Win32.