mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-29 03:03:39 +02:00
fix compilation for application.handle removal
git-svn-id: trunk@7038 -
This commit is contained in:
parent
a0e6994f8e
commit
65a533af7a
@ -2,7 +2,7 @@
|
||||
Implementation for winprinter
|
||||
***************************************************************}
|
||||
|
||||
Uses WinUtilPrn;
|
||||
Uses WinUtilPrn, InterfaceBase, Win32Int;
|
||||
|
||||
Const
|
||||
Win32Orientations: array [TPrinterOrientation] of Integer = (
|
||||
@ -81,7 +81,7 @@ begin
|
||||
lStructSize:=SizeOf(lpp);
|
||||
hInstance:=LCLType.HInstance;
|
||||
Flags:=PD_COLLATE or PD_USEDEVMODECOPIES; //PD_PRINTSETUP ;
|
||||
hWndOwner:=Application.Handle;
|
||||
hWndOwner:=TWin32WidgetSet(InterfaceObject).AppHandle;
|
||||
|
||||
PDev:=TPrinterDevice(Printers.Objects[PrinterIndex]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user