home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
progjorn
/
pj_7_3b.arc
/
PWCOMMON.ARC
/
TTYCLS.H
< prev
Wrap
C/C++ Source or Header
|
1989-01-24
|
921b
|
41 lines
#ifdef WINDOWS
#define HPS HDC
#endif
/*
* this structure contains most of the information needed
* to use the tty window.
*/
struct TTYWND {
HWND hWnd;
#ifdef WINDOWS
POINT Pos;
HANDLE hVidBuf;
#else
POINTL Pos;
#endif
BYTE *pVidBuf;
short CWidth, CHeight;
short Top, Left;
short Width, Height;
short MaxLines,MaxCols;
short MaxLineLength;
short CurLineOffset;
short oCurrentLine;
short oVidLastLine;
short FontIndex;
BOOL LFonCR;
BOOL CRonLF;
BOOL Wrap;
BYTE ebitmask;
};
typedef struct TTYWND *PTTYWND;
/* shared function declarations */
InitTTYWindow(PTTYWND,short,short,short,short,short,short,
BOOL,BOOL,BOOL,short,BYTE);
int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);
void NEAR TTYClear(PTTYWND pTTYWnd);