home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
msysjour
/
vol04
/
02b
/
project
/
act
/
printer.act
< prev
next >
Wrap
Text File
|
1988-09-01
|
1KB
|
48 lines
/* PRINTER.ACT - file to maintain the MS-Windows ESCAPE function modes and
miscellaneous modifications to the system classes
Mark Solinski, The Whitewater Group.
*/
/* GDI escapes */
#define NEWFRAME 1
#define ABORTDOC 2
#define NEXTBAND 3
#define SETCOLORTABLE 4
#define GETCOLORTABLE 5
#define FLUSHOUTPUT 6
#define DRAFTMODE 7
#define QUERYESCSUPPORT 8
#define SETABORTPROC 9
#define STARTDOC 10
#define ENDDOC 11
#define GETPHYSPAGESIZE 12
#define GETPRINTINGOFFSET 13
#define GETSCALINGFACTOR 14
!!
/* Device Parameters for GetDeviceCaps() */
#define HORZSIZE 4 /* Horizontal size in millimeters */
#define VERTSIZE 6 /* Vertical size in millimeters */
#define HORZRES 8 /* Horizontal width in pixels */
#define VERTRES 10 /* Vertical width in pixels */
!!
now(Object);!!
/* Return the string from win.ini. If not found,
return zero-length string. */
Def getProfileString(self, sectionName, key, dStr,
nSize | str, ans, len)
{ str := new(String, nSize);
len := Call GetProfileString(lP(sectionName),
lP(key), lP(dStr), lP(str), nSize);
ans := subString(getText(str), 0, len) ;
freeHandle(sectionName);
freeHandle(key);
freeHandle(dStr);
freeHandle(str);
^ans;
}!!