Changing Floating Toolbar Caption Runtime... 
Author Message
 Changing Floating Toolbar Caption Runtime...

Hi,
    Does anybody know how to change the caption on a floating toolbar.
I've created one, and set a generic caption in my mainframe's OnCreate,
but later on I want to change this caption.
    I've tried using SetWindowText() followed by UpdateWindow, but it
doesn't work if the bar is floating. If the bar is docked, and then
floated the new name appears, as well as if the floating bar is docked
and re-floated. (get that?) How can I force the toolbar to display it's
text?

TIA,
 Harvey Hawes



Sun, 27 Feb 2000 03:00:00 GMT  
 Changing Floating Toolbar Caption Runtime...

Hi Harvey,
try this:

   // SetWindowText doesnt work
   // qpads is the toolbar
   qpads.title("new toolbar title");
   ShowControlBar(&qpads,FALSE,FALSE);
   DockControlBar(&qpads,AFX_IDW_DOCKBAR_TOP);
   FloatControlBar(&qpads,pt,CBRS_ALIGN_TOP);
   ShowControlBar(&qpads,TRUE,TRUE);

Greetings, Andreas



Tue, 29 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to change on runtime the caption of a C++ dialog app main window

2. How to change on runtime the caption of a C++ dialog app main window

3. Changing a Dialog's CAPTION during runtime

4. Changing Caption of CPropertyPage at runtime?

5. Change popup menu captions at runtime (ModifyMenu)

6. Change caption of childwindow runtime ?

7. Changing the Caption of a Modal Dialog at Runtime

8. How to change the caption of a MDI frame at runtime

9. How to change the (addins) toolbar caption?

10. Change Toolbar runtime

11. How to display caption on floating dialogbars

12. caption window not with toolbar?

 

 
Powered by phpBB® Forum Software