Transparent ActiveX Controls

I need to support Transparence in a control that I am currently implementing.  However I cannot seem to get this to work.

I have attempted to use the NULL_BRUSH option with CreateBrush but don't really know if this is the desired effect of this option...
cdm100497Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jstolanConnect With a Mentor Commented:
This may work for you depending on what you're doing.

Use the CPictureHolder class to hold the image you need to draw.  This class supports icons which inherently support transparency.  This worked great for me in an ActiveX control I wrote to draw chess pieces.  Obviously I wanted the chess board to show through behind the piece outline.

Very easy.  If you would like sample code, reply with yur E-mail address and I'll send it to you.
0
 
cdm100497Author Commented:
My email address is chrism@swallow.com, I'm not sure if this will work for me but I'll give it a go.
0
All Courses

From novice to tech pro — start learning today.