Transparent child control
Posted
by pps
on Stack Overflow
See other posts from Stack Overflow
or by pps
Published on 2009-10-24T00:41:24Z
Indexed on
2010/04/08
9:03 UTC
Read the original article
Hit count: 286
Hello all, I'm writing a control that may have some of its parts transparent or semitransparent. Basically this control shows a png image (with alpha channel). The control's parent window has some graphics on it. Therefore, to make the png control render correctly it needs to get image of what the parent window would draw beneath it. Parent dialog might have WS_CLIPCHILDREN flag set, that means that the the parent window won't draw anything under the the png control and in this case png control won't work properly. This control has to work on Windows Mobile also, so it can't have WS_EX_TRANSPARENT
© Stack Overflow or respective owner