Search found 11 matches: lpdevmode

Return to advanced search

Re: Printing double sided

Dear Tim,

function PRNDUPLEX() just uses one parameter and it is properly assigned here:

lpDevMode->dmDuplex = hb_parni( 1 );
by Antonio Linares
Tue Oct 25, 2022 9:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing double sided
Replies: 24
Views: 2275

Re: *** Curso de C para programadores Harbour.

... create a printer device context using the CreateDC API call: Code: Select all HDC hDC = CreateDC( _T( "winspool" ), szPrinter, NULL, lpDevMode ); Or make this configuration as the default for this printer and for all applications using this printer. DWORD dw; PRINTER_INFO_2 *pi2; ...
by Otto
Mon Jul 12, 2021 8:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: *** Curso de C para programadores Harbour.
Replies: 141
Views: 25637

Re: SetLandscape

... create a printer device context using the CreateDC API call: Code: Select all HDC hDC = CreateDC( _T( "winspool" ), szPrinter, NULL, lpDevMode ); Or make this configuration as the default for this printer and for all applications using this printer. Code: Select all DWORD dw; PRINTER_INFO_2 ...
by Otto
Mon Jun 14, 2021 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetLandscape
Replies: 11
Views: 1634

Re: Resolucion en pantalla

... no soportado", "Error" ) endif return lCamReso DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 STATIC FUNCTION ChangeDisplaySettings(@lpDevMode ...
by russimicro
Thu Aug 13, 2015 1:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Resolucion en pantalla
Replies: 7
Views: 2868

Re: CAMBIO RESOLUCION PANTALLA

... no soportado", "Error" ) endif return lCamReso DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 STATIC FUNCTION ChangeDisplaySettings(@lpDevMode ...
by Maggiro
Sat Apr 19, 2014 9:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 9546

Sintax de EnumJobs

... "StrucT.ch" #define PRINTER_ACCESS_ADMINISTER 0x00000004 STRUCT oPrnDefaults MEMBER pDatatype AS LPSTR MEMBER pDevMode AS LPSTR // LPDEVMODE MEMBER DesiredAccess AS DWORD // ACCESS_MASK MEMBER pFirstJob AS DWORD MEMBER pNoJobs AS DWORD MEMBER pLevel AS DWORD MEMBER pJob AS DWORD ...
by SENUN
Tue Nov 01, 2011 2:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sintax de EnumJobs
Replies: 1
Views: 683

Seleccionar Bandeja no funciona

... para una impresora es 260, alucina, y yo probando del 1 al 14, pues mal vamos. La función PRINTERSETUP() no guarda o mantiene la esctructura LPDEVMODE , por lo tanto, es imposible saber el codigo BIN que le corresponde a las diferentes bandejas de la impresora. function GetBinSelection: integer; ...
by thefull
Wed Dec 16, 2009 4:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Seleccionar Bandeja no funciona
Replies: 1
Views: 571

... else MsgStop("Modo no soportado", "Error" ) end Return lCamReso DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,; dwFlags ...
by jaba
Mon Oct 27, 2008 11:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar resolucion
Replies: 10
Views: 2926

... else MsgStop("Modo no soportado", "Error" ) end Return lCamReso DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,; dwFlags ...
by horacio
Mon Oct 27, 2008 2:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar resolucion
Replies: 10
Views: 2926

... MsgAlert("Modo no soportado", "Error" ) endif return lCamReso DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,; dwFlags ...
by Manuel Valdenebro
Fri Feb 08, 2008 9:38 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 9546

... nao suportado", "Erro" ) ENDCASE endif return lDone DLL32 FUNCTION EnumDisplaySettings(lpszDeviceName AS DWORD,; iModeNum AS DWORD, ; @lpDevMode AS LPSTR) AS BOOL PASCAL; FROM "EnumDisplaySettingsA" LIB "User32.dll" DLL32 FUNCTION ChangeDisplaySettings(@lpDevMode AS LPSTR,; dwFlags ...
by horacio
Wed Feb 06, 2008 10:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 9546

Return to advanced search