Changing text on title bar 
Author Message
 Changing text on title bar

How can I change the text displayed in a title bar dynamically in my program?
My program is a SDI program with MFC.


Mon, 18 Aug 2003 03:59:13 GMT  
 Changing text on title bar
Use
            SetWindowText()

Cheers
Check Abdoul
------------------


Quote:
> How can I change the text displayed in a title bar dynamically in my
program?
> My program is a SDI program with MFC.



Mon, 18 Aug 2003 04:06:09 GMT  
 Changing text on title bar
Wayne,

You need SetWindowText(..), which applies to *any* window. If you are using
an SDI format, you'll need to point to the main frame window as in...

AfxGetMainWnd()->SetWindowText(szMyTitle);

HTH
Cecil

--

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


Quote:
> How can I change the text displayed in a title bar dynamically in my
program?
> My program is a SDI program with MFC.



Mon, 18 Aug 2003 04:31:14 GMT  
 Changing text on title bar
SetWindowText for the window


Quote:
> How can I change the text displayed in a title bar dynamically in my
program?
> My program is a SDI program with MFC.



Mon, 18 Aug 2003 04:06:53 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Changing text in title bar

2. Changing title bar text

3. How to programmatically change title bar text.

4. Changing title bar text

5. How to change Child Title Bar Text?

6. Changing Title Bar Text of a Child Window

7. Change Title Bar Text of CPropertySheet

8. Changing Title Bar Text of a Child Window

9. Text box on Title bar

10. show a text in the title bar

11. Text on title bar - Help!

12. Title Bar Text

 

 
Powered by phpBB® Forum Software