mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:49:30 +02:00
win32: hide modal window by SetWindowPos() - this partly fix issue #0021306
git-svn-id: trunk@35962 -
This commit is contained in:
parent
b2e6bf87e6
commit
a54c5387fe
@ -694,7 +694,11 @@ begin
|
||||
Windows.SendMessage(AWinControl.Handle, WM_SHOWWINDOW, 1, 0);
|
||||
end
|
||||
else
|
||||
ShowWindow(AWinControl.Handle, SW_HIDE);
|
||||
if fsModal in TCustomForm(AWinControl).FormState then
|
||||
Windows.SetWindowPos(AWinControl.Handle, 0, 0, 0, 0, 0,
|
||||
SWP_NOSIZE or SWP_NOMOVE or SWP_NOZORDER or SWP_NOACTIVATE or SWP_HIDEWINDOW)
|
||||
else
|
||||
Windows.ShowWindow(AWinControl.Handle, SW_HIDE);
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomForm.ShowModal(const ACustomForm: TCustomForm);
|
||||
|
Loading…
Reference in New Issue
Block a user