- Code: Select all Expand view
- if (pDevMode->dmFields & DM_DUPLEX)
Or a second way == better: A separated function IsDuplexprinter() similar to IsColorprinter()
if (pDevMode->dmFields & DM_DUPLEX)
HB_FUNC( ISDUPLEXPRINTER )
{
LPDEVMODE lpDevMode;
PrinterInit();
lpDevMode = (LPDEVMODE) GlobalLock( pd.hDevMode );
hb_retl( pDevMode->dmFields & DM_DUPLEX );
GlobalUnlock( pd.hDevMode );
}
METHOD Setduplex( nMode ) CLASS TPreview
if ISDUPLEXPRINTER()
PRNDUPLEX( nMode )
::oDevice:Rebuild()
endif
return NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 55 guests