Solved

Transparent ActiveX Controls

Posted on 1998-06-10
2
220 Views
Last Modified: 2013-11-20
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...
0
Comment
Question by:cdm100497
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 100 total points
ID: 1317842
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
 

Author Comment

by:cdm100497
ID: 1317843
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 37
ORA-01403: no data found 43 89
iSeries DB2 Query 2 90
difference between String.subString() and String.subSequence() 6 169
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now