Thu Jun 26 02:14:03 1997 Slaven Rezic <eserte@cs.tu-berlin.de> * [Makefile.in] New target install_includes. * [rc/parser.h] [rc/parser.y] [rc/winerc.c] Some bug fixes. Wed Jun 25 14:43:41 1997 Victor Schneider <vischne@ibm.net> * [controls/edit.c] Fixed WM_GETTEXT return value. Tue Jun 24 23:46:04 1997 Michiel van Loon <mfvl@xs4all.nl> * [multimedia/*.c] [include/mmsystem.h] Added more callback code, including (I hope) function callback. Changed some linear pointers into segmented. * [multimedia/audio.c] Removed some bugs. Sat Jun 28 11:37:56 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [if1632/commdlg.spec][if1632/comdlg32.spec][misc/commdlg.c] [include/commdlg.h] Implemented parts of comdlg32: GetOpenFileName32*, GetSaveFileName32*, GetFileTitle32* using the 16 bit equivalents. * [windows/event.c] EVENT_QueryZOrder: check for children !=NULL (happens when using -managed). * [BUGS][DEVELOPER-HINTS] Updated. * [objects/text.c] Added GetTextCharset... (stub mostly). Sat Jun 21 08:47:58 1997 Philippe De Muyter <phdm@info.ucl.ac.be> * [if1632/kernel.spec] [if1632/gdi.spec] [include/windows.h] [loader/resource.c] [graphics/x11drv/xfont.c] SetResourceHandler & RemoveFontResource prototypes fixed. * [if1632/relay.c] [if1632/kernel.spec] [if1632/user.spec] [if1632/olesvr.spec] [if1632/commdlg.spec] [if1632/ddeml.spec] [if1632/gdi.spec] [if1632/lzexpand.spec] [if1632/shell.spec] [include/windows.h] [memory/string.c] [tools/build.c] New type of parameter allowed in .spec files : str, printed as a string with -debugmsg +relay. .spec files updated. * [objects/dc.c] In DC_SetupGCForPen, call BlackPixelOfScreen, not BlackPixel. Likewise for WhitePixel. * [objects/gdiobj.c] [graphics/x11drv/brush.c] Use BS_HATCHED with an added entry in HatchBrushes for DkGrayBrush, instead of BS_SOLID. Fri May 30 17:58:00 1997 Chris Faherty <chrisf@america.com> * [windows/keyboard.c] Added vkey to scancode translation table. This was primarily to fix Citrix WinFrame client which always needs scancodes in WM_KEYDOWN. Tested with Exceed 5.1.0.1 & XFree86 3.1.2.
76 lines
1.8 KiB
C
76 lines
1.8 KiB
C
/*
|
|
* Implementation of some printer driver bits
|
|
*
|
|
* Copyright 1996 John Harvey
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#include "windows.h"
|
|
#include "win.h"
|
|
#include "winerror.h"
|
|
|
|
|
|
INT16 StartDoc16( HDC16 hdc, const DOCINFO16 *lpdoc )
|
|
{
|
|
INT16 retVal;
|
|
printf("In startdoc16(%p)\n", lpdoc );
|
|
printf("In StartDoc16 %d 0x%lx:0x%p 0x%lx:0x%p\n",lpdoc->cbSize,
|
|
lpdoc->lpszDocName,PTR_SEG_TO_LIN(lpdoc->lpszDocName),
|
|
lpdoc->lpszOutput,PTR_SEG_TO_LIN(lpdoc->lpszOutput));
|
|
printf("In StartDoc16 %d %s %s\n",lpdoc->cbSize,
|
|
(LPSTR)PTR_SEG_TO_LIN(lpdoc->lpszDocName),
|
|
(LPSTR)PTR_SEG_TO_LIN(lpdoc->lpszOutput));
|
|
retVal = Escape16(hdc, STARTDOC, sizeof(DOCINFO16), lpdoc->lpszDocName, 0);
|
|
printf("Escape16 returned %d\n",retVal);
|
|
return retVal;
|
|
}
|
|
|
|
INT16
|
|
EndDoc16(HDC16 hdc)
|
|
{
|
|
return Escape16(hdc, ENDDOC, 0, 0, 0);
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
|
DrvGetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
|
|
LPBYTE lpPrinterData, int cbData, LPDWORD lpNeeded)
|
|
{
|
|
fprintf(stderr,"In DrvGetPrinterData ");
|
|
if (HIWORD(lpPrinter))
|
|
fprintf(stderr,"printer %s ",lpPrinter);
|
|
else
|
|
fprintf(stderr,"printer %p ",lpPrinter);
|
|
if (HIWORD(lpProfile))
|
|
fprintf(stderr,"profile %s ",lpProfile);
|
|
else
|
|
fprintf(stderr,"profile %p ",lpProfile);
|
|
fprintf(stderr,"lpType %p\n",lpType);
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
|
DrvSetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
|
|
LPBYTE lpPrinterData, DWORD dwSize)
|
|
{
|
|
fprintf(stderr,"In DrvSetPrinterData ");
|
|
if (HIWORD(lpPrinter))
|
|
fprintf(stderr,"printer %s ",lpPrinter);
|
|
else
|
|
fprintf(stderr,"printer %p ",lpPrinter);
|
|
if (HIWORD(lpProfile))
|
|
fprintf(stderr,"profile %s ",lpProfile);
|
|
else
|
|
fprintf(stderr,"profile %p ",lpProfile);
|
|
fprintf(stderr,"lpType %p\n",lpType);
|
|
return 0;
|
|
}
|
|
|
|
|
|
|