mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 10:20:19 +02:00
Win32: Prevent Splitter from activating the "resize bar" window. Avoid focus changes to the form, or its components. Issue #41506 Patch by Lipinast Lekrisov
(cherry picked from commit 12afdd137b
)
This commit is contained in:
parent
dc81b2e397
commit
4186441ba3
@ -284,15 +284,17 @@ begin
|
||||
if WindowsVersion >= wv2000 then
|
||||
begin
|
||||
Result := CreateWindowEx(WS_EX_LAYERED or WS_EX_TRANSPARENT or WS_EX_TOPMOST or WS_EX_TOOLWINDOW,
|
||||
PChar(WndClassName), PChar(WndClassName), WS_POPUP or WS_VISIBLE,
|
||||
PChar(WndClassName), PChar(WndClassName), WS_POPUP,
|
||||
ARect.Left, ARect.Top, ARect.Right - ARect.Left, ARect.Bottom - ARect.Top, AppHandle, 0, System.HInstance, nil);
|
||||
|
||||
SetLayeredWindowAttributes(Result, 0, $30, LWA_ALPHA);
|
||||
end
|
||||
else
|
||||
Result := CreateWindowEx(WS_EX_TOPMOST or WS_EX_TOOLWINDOW,
|
||||
PChar(WndClassName), PChar(WndClassName), WS_POPUP or WS_VISIBLE,
|
||||
PChar(WndClassName), PChar(WndClassName), WS_POPUP,
|
||||
ARect.Left, ARect.Top, ARect.Right - ARect.Left, ARect.Bottom - ARect.Top, AppHandle, 0, System.HInstance, nil);
|
||||
|
||||
ShowWindow(Result, SW_SHOWNOACTIVATE);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user