Change application title 
Author Message
 Change application title

How do I change the application title, as displayed in the title bar.

David



Mon, 14 Jul 2003 19:37:35 GMT  
 Change application title
Hi,

you can use CWnd::SetWindowText:

Sets the window's title to the specified text. If the window is a control,
the text within the control is set.

This function causes aWM_SETTEXT message to be sent to this window.

I hope this helps

     Kurt Antreich


Quote:
> How do I change the application title, as displayed in the title bar.

> David



Mon, 14 Jul 2003 19:56:12 GMT  
 Change application title
David

Use SetWindowText(..) against the window in question.

Cecil

--

-------------------------------------------
Cecil A. Galbraith
http://www.codesoup.com
Programmers Utilities/Tips
-------------------------------------------


Quote:
> How do I change the application title, as displayed in the title bar.

> David



Mon, 14 Jul 2003 20:12:49 GMT  
 Change application title
((CYourMainFrame*)AfxGetMainWindow())->SetWindowText("WhatNameYouLikeBest");

Cheers


Quote:
> How do I change the application title, as displayed in the title bar.

> David



Mon, 14 Jul 2003 23:03:50 GMT  
 Change application title
David,

In addition to the other good advice you have received, you may need to turn
off the windows styles FWS_ADDTOTITLE and FWS_PREFIXTITLE in the
PreCreateWindow method of your mainframe window class.

Dave Smith


Quote:
> How do I change the application title, as displayed in the title bar.

> David



Tue, 15 Jul 2003 00:39:22 GMT  
 Change application title
AfxGetMainWnd, that is, not Window, sorry.


Quote:
> How do I change the application title, as displayed in the title bar.

> David



Tue, 15 Jul 2003 02:46:09 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Application Title - how do I change it dynamically

2. How to Change Title of Dialog Base Application

3. How change the title of an MFC application?

4. How to change the bk color of the entair application with out effecting the other application

5. Changing the title in ps

6. How to change the whole title (caption) of a PropertyFrame created with OleCreatePropertyFrame

7. Change the Height of Title Bar!

8. - Changing the FONT of the title bars and menus

9. Changing Title Background color

10. Changing Title Bar?

11. How to change Icon on the Title Bar

12. How to change the title icon?

 

 
Powered by phpBB® Forum Software