FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New function IsColorPrinter()
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
New function IsColorPrinter()
Posted: Tue Apr 02, 2013 07:24 PM
Antonio, can you add this code to printdc.c? Maybe it is for some people useful.

Code (fw): Select all Collapse
HB_FUNC( ISCOLORPRINTER )
{
   LPDEVMODE  lpDevMode;

   PrinterInit();

   lpDevMode  = (LPDEVMODE) GlobalLock( pd.hDevMode );

   hb_retl( lpDevMode->dmColor == DMCOLOR_COLOR );
   GlobalUnlock( pd.hDevMode );
}
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New function IsColorPrinter()
Posted: Tue Apr 02, 2013 09:42 PM

Günther,

Added, thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion