Title Bar Text 
Author Message
 Title Bar Text

Hi
I know how to modify the title bar text in an mdi window using
CDocument.SetTitle( ) in OnNewDocument, but I need to change it dynamically
throughout the program. SetWindowText does not seem to work. Any ideas?

Thanks
Justin



Mon, 01 Apr 2002 03:00:00 GMT  
 Title Bar Text
Hi Justin

try  AfxSetWindowText(m_hWnd, "Title");

you need to include
#include <afxpriv.h>

Hope this helps

Martin



Quote:
> Hi
> I know how to modify the title bar text in an mdi window using
> CDocument.SetTitle( ) in OnNewDocument, but I need to change it
dynamically
> throughout the program. SetWindowText does not seem to work. Any ideas?

> Thanks
> Justin



Mon, 01 Apr 2002 03:00:00 GMT  
 Title Bar Text
Justin:

SetWindowText() works fine. Are you sure that you are applying it to the
correct window. You should apply it to MDIChildFrame and not the view.

-----------
Ajay Kalra

VC++ MVP

Quote:

>Hi
>I know how to modify the title bar text in an mdi window using
>CDocument.SetTitle( ) in OnNewDocument, but I need to change it dynamically
>throughout the program. SetWindowText does not seem to work. Any ideas?

>Thanks
>Justin



Mon, 01 Apr 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing title bar text

2. How to programmatically change title bar text.

3. Changing title bar text

4. How to change Child Title Bar Text?

5. Title bar text

6. setting Title Bar Text

7. Changing Title Bar Text of a Child Window

8. Change Title Bar Text of CPropertySheet

9. Title bar text in view-doc app

10. Title Bar Text in SDI

11. Changing Title Bar Text of a Child Window

12. How to get the font used for title bar text?

 

 
Powered by phpBB® Forum Software