|
-
April 27th, 1999, 10:31 AM
#1
How to change window title font
I need to use a fixed font for the title bar of a window. How to I change this ?
Thanks,
Louis.
-
April 27th, 1999, 12:04 PM
#2
Re: How to change window title font
You need to do a few things. Capture WM_NCPAINT, WM_SETTEXT, WM_SYSCOMMAND and WM_NCACTIVATE. These messages all rewrite the caption to the window.
Refer to the Microsoft article Q99046. This describes in detail what to do when you retrieve these messages. I believe the article can be found at www.microsoft.com, or in any MSDN on-line help (including the help that comes with VC 6).
Regards,
Paul McKenzie
-
April 27th, 1999, 03:47 PM
#3
Re: How to change window title font
In addition to what Paul said, there is an article on this site about painting
a gradient-shaded caption bar at http://www.codeguru.com/misc/GradientCap.shtml
Obviously, you can revise the caption painting to suit your needs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|