Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to use SetLayeredWindowAttributes?

Posted on 2001-07-31
1
Medium Priority
?
244 Views
Last Modified: 2013-11-20
I have an ActiveX Control that has a two windows, I need to make the topmost window transparent so I can see the picture drawn on the lower window, I tried the following code on the OnDraw of the top window:

SetWindowLong(m_hWnd,GWL_EXSTYLE,GetWindowLong(m_hWnd,GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes(m_hWnd, RGB(0,0,0), 80, LWA_ALPHA);

But I get no results, what can I do?! Help plz.
0
Comment
Question by:Daed
1 Comment
 
LVL 12

Accepted Solution

by:
migel earned 300 total points
ID: 6341392
Hi!
look at:
http://msdn.microsoft.com/library/en-us/dnwui/html/layerwin.asp?frame=true
it is article :
"Layered Windows
A New Way to Use Translucency and Transparency Effects in Windows Applications"
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

885 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