Page 1 of 1

Transparent Frame

Posted: 28 Jul 2009, 13:24
by itmg
Hi,
is it possible to make the Frame control transparent?
The Frame will automatically be transparent, when it's placed on your TabStrip control.

Re: Transparent Frame

Posted: 28 Jul 2009, 16:26
by TiKu
Real transparency is currently not possible. It works on the TabStrip (and other themed windows), because the Frame control calls DrawThemeParentBackground in its WM_CTLCOLORSTATIC message handling routine. I tried to implement real transparency for the Label control, which I never published due to serious drawing glitches which are caused by the transparency. So to be honest, I do not know how to implement real transparency.
However, you should have a look at the "Transparent Background" samples that come with my Animation and TrackBar controls. They demonstrate how to use subclassing to customize handling of the WM_CTLCOLORSTATIC message in a way so that the control appears to be transparent (it is not really transparent though). I'm not sure this will also work with the Frame control, but it's worth a try.