Solved

Transparent ActiveX Controls

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
zeroMAx challenge 20 126
Use of condition with 'serial' in ansible 2 88
Annoying "thing" blocks my view 4 133
wordmultiple challenge 12 156
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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