Visual C++ - how do I dynamically change toolbar title?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

PurpleReign

Thread Starter
Joined
Mar 30, 2004
Messages
1
I'm developing an application that displays a floating customized toolbar and I want to dynamically change the toolbar's title text to include some extra information according to certain user selections after the toolbar has initially been loaded/displayed. I tried using SetWindowText to change the toolbar title, and internally it seems to have modified the title because a subsequent call to GetWindowText indicates the toolbar's title was in fact changed, but the toolbar's title that is displayed doesn't seem to get refreshed. I've tried calling various routines to refresh the entire toolbar (Invalidate, InvalidateRect, InvalidateRgn, etc.) and then refresh the toolbar (UpdateWindow, RedrawWindow, etc.) but nothing seems to refresh the toolbar's title text. I've done this with other types of windows, but toolbars seem to be a different kind of duck.

Anyone ever run across something like this?

I'm programming in Visual Studio C++ 6.0 on a Windows 2000 SP4 platform.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top