Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Transparent ActiveX Controls

Posted on 1998-06-10
2
Medium Priority
?
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

636 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