win32 sdk: how to make the caption/border of a child window transparent

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-05-29T05:17:29Z Indexed on 2010/05/29 5:52 UTC
Read the original article Hit count: 262

Filed under:
|

I'm creating a child window within the main window. I assigned these styles to the child window:

WS_CHILDWINDOW | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | WS_SIZEBOX | WS_CAPTION

The child window I get has a caption and a resizable border. However there's no close button in the caption, and the caption/border of the child window is not transparent (I'm using the aero theme in windows 7).

Here is the screen snap:

alt text

How to add close button to the caption? How can I make the caption/border transparent?

© Stack Overflow or respective owner

Related posts about win32

Related posts about childwindow