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
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.
Re: MDI Child Window Caption Styles
Thanks for the response. Just what I needed.