How change the title of an MFC application? 
Author Message
 How change the title of an MFC application?

Did any body know how to change the title of an MFC application?
I tried Document::SetTitle(CString) but it doesn't work.


Tue, 07 Dec 2004 21:37:41 GMT  
 How change the title of an MFC application?
The easiest way I know of is to add a string resource with an ID of
AFX_IDS_APP_TITLE, and set that to the name you want the application to
display.  You can also accomplish this by manipulating the
CWinApp::m_pszAppName member variable, but the string resource technique is
easier IMO.  The following MSDN article may be helpful:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcem...
cwinapp_44.asp

--

Nathan Lewis

Check out the WinCE CAB Manager - the ultimate CAB file utility!
Available only from OCP Software - http://www.ocpsoftware.com


Quote:
> Did any body know how to change the title of an MFC application?
> I tried Document::SetTitle(CString) but it doesn't work.



Tue, 07 Dec 2004 23:10:54 GMT  
 How change the title of an MFC application?
Another way to do it, is after the window is displayed
call SetWindowText() with the title you want, and the
HANDLE of the top-level window (in MFC, that's the
CMainFrm-derived window handle).


Wed, 08 Dec 2004 09:21:32 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Change application title

2. Application Title - how do I change it dynamically

3. How to Change Title of Dialog Base Application

4. Window Title in single-document MFC application

5. Change Icon on MFC System Menu (Title Bar)

6. Changing your title in a MFC doc/view SDI app

7. Adding MFC-code to a non MFC Application(WIN-application)

8. how to change the view window in an mfc application

9. How to change the help file of an MFC Application dynamically

10. Changing the Registered Class for an MFC Dialog Based Application

11. Can i change FormView of the MFC Application a runtime

12. Changing MFC application name

 

 
Powered by phpBB® Forum Software