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

    Window Caption size change?

    Hi,
    I have a regular application window (created with WTL) and I need to make its caption bar thicker (taller) than then standard size. How can I do this programmatically without custom drawing the non-client area myself (handling the WM_NCPAINT message)?
    I need to this this only for my window's caption bar (the title bar) and changing the system setting to apply to the whole system is not an option.
    Thanks,
    -Gianluca.

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Window Caption size change?

    You can't. Caption sizes are global.

    You will either need to do NC painting, or you will need to create a captionless window, and do all the painting yourself, simulating a caption.

    If you can limit yourself to Vista and the glass UI, you can extend the glass effect into the client area making it appear to have a larger caption (DwmExtendFrameIntoClientArea), but this will still need you to do NC painting

  3. #3
    Join Date
    Feb 2010
    Posts
    3

    Re: Window Caption size change?

    Thank you, OReubens.

Tags for this Thread

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