View previous topic :: View next topic |
Author |
Message |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Sep 16, 2007 5:38 am Post subject: Partial transparency help |
|
|
Does anyone have the code in any language which makes a control (or a form, same thing) have different transparency values on different places of the control with a single hwnd?
the screenshot is edited to demonstrate the effect
Description: |
|
Filesize: |
434.44 KB |
Viewed: |
6534 Time(s) |

|
_________________
Get kidnapped often. |
|
Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Sep 16, 2007 6:51 am Post subject: |
|
|
its looks to me like you could make a hdc for that section and then it would be on the same hwnd?
If your familiar with BitBlt you should know about dcs
_________________
|
|
Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
Posted: Sun Sep 16, 2007 9:05 am Post subject: |
|
|
blland wrote: |
Re zart: SetLayeredWindowAttributes, .Opacity and .TransparencyKey in .NET either:
- cannot make only some portions of the form transparent, or
- cannot make the selected portion transparent to some values, e.g. 50% or 127.
|
You asked for it in any language, not for .NET - if you need something for a specific language - you should say that.
_________________
0x7A 0x61 0x72 0x74
TEAM RESURRECTiON |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Sep 16, 2007 10:32 am Post subject: |
|
|
You can use:
- SetWindowLong
- GetWindowLong
- SetLayeredWindowAttributes
Which should work in any language.
|
|
Back to top |
|
 |
Programmer Cheater
Reputation: 0
Joined: 02 Sep 2007 Posts: 48
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Mon Sep 17, 2007 8:39 am Post subject: |
|
|
There is a part in Noz3001's blog that gives an example.
|
|
Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
Back to top |
|
 |
|