By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

Custom caption on form title bar

P: n/a
Hello,

I would like my program to display the caption on the form (top of form
on title bar) in a different font. I would ideally like to have one
part of the form caption in one font, and another part in a standard
(i.e. Arial) font. How do I go about doing this? It is probably an
an override of the standard form or a custom draw routine for the
caption.
Mike McWhinney
elja, Inc.

Sep 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You need to override WndProc and handle the WM_NCPAINT message.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"eljainc" <el*****@sbcglobal.netwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hello,

I would like my program to display the caption on the form (top of form
on title bar) in a different font. I would ideally like to have one
part of the form caption in one font, and another part in a standard
(i.e. Arial) font. How do I go about doing this? It is probably an
an override of the standard form or a custom draw routine for the
caption.
Mike McWhinney
elja, Inc.

Sep 29 '06 #2

P: n/a
Can you provide a short example of this?

Thanks.
Mike

Bob Powell [MVP] wrote:
You need to override WndProc and handle the WM_NCPAINT message.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"eljainc" <el*****@sbcglobal.netwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hello,

I would like my program to display the caption on the form (top of form
on title bar) in a different font. I would ideally like to have one
part of the form caption in one font, and another part in a standard
(i.e. Arial) font. How do I go about doing this? It is probably an
an override of the standard form or a custom draw routine for the
caption.
Mike McWhinney
elja, Inc.
Oct 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.