diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/gdi/fpg_gdi.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 2bbdd389..d5e2bf19 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -2033,7 +2033,10 @@ end; procedure TfpgGDIWindow.ActivateWindow; begin - SetForegroundWindow(FWinHandle); + Windows.SetWindowPos( + WinHandle, HWND_NOTOPMOST, + FLeft, FTop, FWidth, FHeight, + SWP_NOZORDER or SWP_NOSIZE); end; procedure TfpgGDIWindow.CaptureMouse; |