Solved

How to use SetLayeredWindowAttributes?

Posted on 2001-07-31
1
218 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 100 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

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

896 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

17 Experts available now in Live!

Get 1:1 Help Now