CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    52

    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.


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    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


  3. #3
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    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
  •  





Click Here to Expand Forum to Full Width

Featured