mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-24 11:48:16 +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
|
TaskConfig.hwndParent := Screen.ActiveCustomForm.Handle
|
||||||
else
|
else
|
||||||
if Assigned(Application.MainForm) then
|
if Assigned(Application.MainForm) then
|
||||||
TaskConfig.hwndParent := Application.MainForm.Handle
|
TaskConfig.hwndParent := Application.MainFormHandle
|
||||||
else
|
else
|
||||||
TaskConfig.hwndParent := AppHandle;
|
TaskConfig.hwndParent := AppHandle;
|
||||||
TaskConfig.hInstance := HInstance;
|
TaskConfig.hInstance := HInstance;
|
||||||
@ -694,7 +694,7 @@ begin
|
|||||||
TaskConfig.hwndParent := Screen.ActiveCustomForm.Handle
|
TaskConfig.hwndParent := Screen.ActiveCustomForm.Handle
|
||||||
else
|
else
|
||||||
if Assigned(Application.MainForm) then
|
if Assigned(Application.MainForm) then
|
||||||
TaskConfig.hwndParent := Application.MainForm.Handle
|
TaskConfig.hwndParent := Application.MainFormHandle
|
||||||
else
|
else
|
||||||
TaskConfig.hwndParent := AppHandle;
|
TaskConfig.hwndParent := AppHandle;
|
||||||
TaskConfig.hInstance := HInstance;
|
TaskConfig.hInstance := HInstance;
|
||||||
|
@ -935,7 +935,7 @@ begin
|
|||||||
Result := Screen.ActiveCustomForm.Handle
|
Result := Screen.ActiveCustomForm.Handle
|
||||||
else
|
else
|
||||||
if Assigned(Application.MainForm) then
|
if Assigned(Application.MainForm) then
|
||||||
Result := Application.MainForm.Handle
|
Result := Application.MainFormHandle
|
||||||
else
|
else
|
||||||
Result := WidgetSet.AppHandle;
|
Result := WidgetSet.AppHandle;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user