Application Title - how do I change it dynamically 
Author Message
 Application Title - how do I change it dynamically

I have an app which runs in either MDI or SDI depending on a level setting - I
want to display the level in the application's title bar along with the other
information i.e.

For MDI, instead of "<appname> - [<document name>]" I want it to say
"<appname> - Level <level> - [<document name>]" where <level> is defined at
runtime...

Cheers for any help
Ant

!!       Junk email NOT wanted or appreciated       !!
!! Remove .NOSPAM from address when replying direct !!



Sun, 06 Aug 2000 03:00:00 GMT  
 Application Title - how do I change it dynamically

I use this code to put whatever I want into the window caption.

SetWindowText("Application name  - Some more Text - etc etc tec");

Quote:

>I have an app which runs in either MDI or SDI depending on a level
setting - I
>want to display the level in the application's title bar along with the
other
>information i.e.

>For MDI, instead of "<appname> - [<document name>]" I want it to say
>"<appname> - Level <level> - [<document name>]" where <level> is defined at
>runtime...

>Cheers for any help
>Ant

>!!       Junk email NOT wanted or appreciated       !!
>!! Remove .NOSPAM from address when replying direct !!



Sun, 06 Aug 2000 03:00:00 GMT  
 Application Title - how do I change it dynamically

Quote:
> I have an app which runs in either MDI or SDI depending on a level
setting - I
> want to display the level in the application's title bar along with the
other
> information i.e.

> For MDI, instead of "<appname> - [<document name>]" I want it to say
> "<appname> - Level <level> - [<document name>]" where <level> is defined
at
> runtime...

> Cheers for any help
> Ant

You can override the semi-documented OnUpdateFrameTitle() in CMainFrame

call the Base class OnUpdateFrameTitle() first, get what it "suggests" with
GetWindowText(), and sneak your level in with SetWindowText().

cU
--

                        http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out:   http://retriever.home.ml.org

Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sun, 06 Aug 2000 03:00:00 GMT  
 Application Title - how do I change it dynamically

Quote:

>I have an app which runs in either MDI or SDI depending on a level
setting - I
>want to display the level in the application's title bar along with the
other
>information i.e.

I'm not sure what the problem is, is it just setting the text for a title
bar?
Or doing so for a particular MDI window?
If you just want to know how to set the text for the title bar of a window,
call the SetWindowText(..) function.


Mon, 07 Aug 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How to change DialogBox title text dynamically

2. Change title for dialog box dynamically

3. change title for dialog box dynamically

4. Can I change window's title color dynamically?(no content)

5. Dynamically changing PropertyPage Title

6. Dynamically change a COlePropertyPage title

7. Dynamically changing main window title bar for an MDI app

8. help needed changing Property Page titles dynamically

9. Changing Mainframe's title dynamically

10. Change application title

11. How to Change Title of Dialog Base Application

12. How change the title of an MFC application?

 

 
Powered by phpBB® Forum Software