-
October 24th, 2012, 07:19 AM
#1
SetParent() child transparency
Hello, first of all I'm codding in C# + WPF but I think this problem is mostly related to WinAPI and this is the only section in forum where I think it supposed to be.
So my problem:
I got transparent WPF window and want to SetParent() to another window. Everything works as I want except that child loses its transparency (and top part of winexplorer window appears a bit strange, buttons and textbox dissapears when under my children).
Here is the preview of my problem:
All I need is to make child transparent. Do I need to set some flag for parent or child or something else?
Thanks in advance!
-
October 25th, 2012, 02:04 PM
#2
Re: SetParent() child transparency
Transparent windows are layered (i.e. have WS_EX_LAYERED style set).
Top-level windows can be layered, the child ones cannot.
See more about layered windows in MSDN.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|