Solved

Transparent ActiveX Controls

Posted on 1998-06-10
2
234 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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