Solved

How to use SetLayeredWindowAttributes?

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

772 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