Changing title bar text 
Author Message
 Changing title bar text

Hello,

I am trying to change the text on the title bar. However,
when I change the text 90% of the top of the characters
are not displayed. It appears that the vertical centering
of the title bar is moved upward. (see attached screen
capture).

Environment: Windows XP, VC6 SP5

((CMainFrame*)AfxGetMainWnd())->SetWindowText("Test");

Attachment(1)

TIA,
Jacques



Fri, 07 Oct 2005 16:35:45 GMT  
 Changing title bar text
Are you using a non-standard font?


Quote:
> Hello,

> I am trying to change the text on the title bar. However,
> when I change the text 90% of the top of the characters
> are not displayed. It appears that the vertical centering
> of the title bar is moved upward. (see attached screen
> capture).

> Environment: Windows XP, VC6 SP5

> ((CMainFrame*)AfxGetMainWnd())->SetWindowText("Test");

> Attachment(1)

> TIA,
> Jacques



Fri, 07 Oct 2005 18:15:07 GMT  
 Changing title bar text
Hello David,

Thank you for replying to my posting.
I did not change the font. As such,
I guess I am using whatever the default
font is.

Any ideas?

Thanks,
Jacques



Fri, 07 Oct 2005 19:51:11 GMT  
 Changing title bar text
Hello,

All problems solved. I was inadvertently appending
CR|LF characters to the end of string, which was causing
the text to be moved up one line.

Thanks,
Jacques



Fri, 07 Oct 2005 20:33:09 GMT  
 Changing title bar text
This should have nothing to do with text disappearing from the caption.
Caption font and other related settings are contolled by the system unless
you have chosen to override that behavior.

--
Ajay Kalra [MVP - VC++]


Quote:
> Hello,

> I am trying to change the text on the title bar. However,
> when I change the text 90% of the top of the characters
> are not displayed. It appears that the vertical centering
> of the title bar is moved upward. (see attached screen
> capture).

> Environment: Windows XP, VC6 SP5

> ((CMainFrame*)AfxGetMainWnd())->SetWindowText("Test");

> Attachment(1)

> TIA,
> Jacques



Fri, 07 Oct 2005 21:31:47 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to programmatically change title bar text.

2. Changing title bar text

3. Changing Title Bar Text of a Child Window

4. Change Title Bar Text of CPropertySheet

5. Changing Title Bar Text of a Child Window

6. Changing text on title bar

7. How to change Child Title Bar Text?

8. Changing text in title bar

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