[Bug 50495] the WS_EX_LAYERED set SetWindowLong GWL_EXSTYLE , Window show white rather than transparency.

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jan 14 03:35:18 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50495

--- Comment #1 from Bruni <earns.61 at gmail.com> ---
Hello,

Try replace the line
> SetWindowLong(hWnd, GWL_STYLE, GetWindowLong(hWnd, GWL_STYLE) & (~WS_DLGFRAME));
with the following two lines:
---------------
SetWindowLongPtr(hWnd, GWL_EXSTYLE, GetWindowLongPtr(hWnd, GWL_EXSTYLE) |
WS_EX_LAYERED | WS_EX_TRANSPARENT);
SetLayeredWindowAttributes(hWnd, 0, (byte)(255 * 0.7), LWA_ALPHA);
---------------
and say what happens.

Thanks.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list