Redraw issue if i hover a window over a transparent shell. [message #646315] |
Thu, 23 December 2010 10:12 |
Bhoomika Messages: 1 Registered: December 2010 |
Junior Member |
|
|
I am using following code to make a composite, on a shell, transparent. But whenever i hover any other window over this transparent composite the window leaves its marks on my composite.
Please help me, is there's any problem in my code. If you can suggest any alternate solution to make a composite transparent it is more than welcomed
int handle = transparentRenderer.handle;
int oldExStyle = OS.GetWindowLong(handle, OS.GWL_EXSTYLE);
int newExStyle = 0;
if (isTransparentEnabled)
{
newExStyle = oldExStyle | OS.WS_EX_TRANSPARENT;
}
else
{
newExStyle = oldExStyle & (0xFFFFFFFF - OS.WS_EX_TRANSPARENT);
}
OS.SetWindowLong(handle, OS.GWL_EXSTYLE, newExStyle);
final int SWP_FRAMECHANGED = 0x20;
OS.SetWindowPos(handle, 0, 0, 0, 0, 0, OS.SWP_NOZORDER | OS.SWP_NOMOVE | OS.SWP_NOSIZE | SWP_FRAMECHANGED);
[Updated on: Thu, 23 December 2010 10:17] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02808 seconds