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

    MDI Child Window Caption Styles

    I want to customize the MDI child window caption bars in my application.

    This article shows an approach to skinning the caption bar:

    http://www.codeproject.com/KB/dialog...ptionbars.aspx

    Looks like this guy just placed an image on top of the caption bar. The standard Xp caption bar can be seen under the skin.

    I want thin caption bars as seen on the child window in the follow screen shot (NYSE Composite):
    http://www.trade2win.com/boards/atta...l-untitled.jpg

    Are these caption bars built-in? Is there a style to turn them on? If not, what is a better way to go about skinning the caption bar?

    Thanks

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: MDI Child Window Caption Styles

    Have you noticed a date of creation of a sample you supplied in a first link; it is 2002, slightly outdated. I would not call it skinning.
    There is no such a thing as a caption styles. Title bar is a part of the windows non-client area. To create custom title bar, you would have to write a code to handle non-client area: title bar, buttons and frame (as in the mentioned sample).

    For Windows up toXP you can set WS_EX_TOOLWINDOW style to show thin frame. The drawback is you will have only close button.
    I would suggest looking into visual styles supported in VS 2008.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    Aug 2009
    Posts
    13

    Re: MDI Child Window Caption Styles

    Thanks for the response. Just what I needed.

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