mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-23 17:48:12 +02:00
win32: use MainFormHandle in some places instead of MainForm.Handle
git-svn-id: trunk@29264 -
This commit is contained in:
parent
84aeae0727
commit
82b51df5c8
@ -347,7 +347,7 @@ begin
|
||||
TaskConfig.hwndParent := Screen.ActiveCustomForm.Handle
|
||||
else
|
||||
if Assigned(Application.MainForm) then
|
||||
TaskConfig.hwndParent := Application.MainForm.Handle
|
||||
TaskConfig.hwndParent := Application.MainFormHandle
|
||||
else
|
||||
TaskConfig.hwndParent := AppHandle;
|
||||
TaskConfig.hInstance := HInstance;
|
||||
@ -694,7 +694,7 @@ begin
|
||||
TaskConfig.hwndParent := Screen.ActiveCustomForm.Handle
|
||||
else
|
||||
if Assigned(Application.MainForm) then
|
||||
TaskConfig.hwndParent := Application.MainForm.Handle
|
||||
TaskConfig.hwndParent := Application.MainFormHandle
|
||||
else
|
||||
TaskConfig.hwndParent := AppHandle;
|
||||
TaskConfig.hInstance := HInstance;
|
||||
|
@ -935,7 +935,7 @@ begin
|
||||
Result := Screen.ActiveCustomForm.Handle
|
||||
else
|
||||
if Assigned(Application.MainForm) then
|
||||
Result := Application.MainForm.Handle
|
||||
Result := Application.MainFormHandle
|
||||
else
|
||||
Result := WidgetSet.AppHandle;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user