| |
|
|
 | |
|
|
|
 Michael Dell | KompilierenMarkierenSeparieren**** ChkPrnForm.inc - Abgeleitet aus einem Beispiel von Andreas Miethe ****
Def GDC(2) !GDI32,GetDeviceCaps
Def DDC(1) !GDI32,DeleteDC
Def CIC(4) !gdi32.dll,CreateICA
Def GSP(0) SubStr$(ReadIni$(WIN.INI,Windows,Device),1,,)
Proc ChkPrnForm
Declare DDC&,Drucker$,hqForm&
Drucker$ = GSP()
DDC& = CIC(0,ADDR(Drucker$),0,0)
If DDC&
Case (Mul(GDC(DDC&,6),10) > Mul(GDC(DDC&,4),10)): hqForm& = 0 Hochformat
Case (Mul(GDC(DDC&,6),10) < Mul(GDC(DDC&,4),10)): hqForm& = 1 Querformat
DDC(DDC&)
EndIf
Return hqForm&
EndProc
***** Beispiel *****
IfNot ChkPrnForm()
MessageBox(Hochformat,Druckformat,0)
Else
MessageBox(Querformat,Druckformat,0)
EndIf
End
***** Beispiel *****
Saluto
Michael |
|
|
| Salu Michael...
Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! | 03.07.2004 ▲ |
|
|
|