New function IsColorPrinter()

New function IsColorPrinter()

Postby byte-one » Tue Apr 02, 2013 7:24 pm

Antonio, can you add this code to printdc.c? Maybe it is for some people useful.

Code: Select all  Expand view
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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: New function IsColorPrinter()

Postby Antonio Linares » Tue Apr 02, 2013 9:42 pm

Günther,

Added, thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 29 guests