Category : C Source Code
Archive   : PUBWIW_C.ZIP
Filename : WINDOW.H
/*------------------------------*
* Window Info *
*------------------------------*/
#define W_PLAIN 0
#define W_DIALOG 1
#define W_SHADOW 2
#define W_TITLED 3
#define W_NOGOAWAY 4
#define W_DOCUMENT 5
#define W_POPUP 0x80
#define error printf
#define LeftButton 0x04
#define MiddleButton 0x02
#define RightButton 0x01
/*--------------------------*
* Mouse Down in Region *
*--------------------------*/
#define IN_NOTHING 0
#define IN_CONTENT 1
#define IN_DRAG 2
#define IN_GOAWAY 3
#define IN_SHRINK 4
#define IN_TITLE 5
#define IN_GROW 6
#define IN_CONTROL 7
struct _WINDOW
{
metaPort port; /* Port Structure related to Window */
COUNT type; /* Type of Window (W_...) */
UBYTE hidden, /* Window is invisible */
visible, /* Window is completely obscured */
shrunk; /* Window is collapsed into Title Bar */
TEXT *title; /* Pointer to Title String */
COUNT tLen; /* Title Length */
rect bounds; /* Bounding Rect for Window */
rect content; /* Rect containing Content */
rect *updateRgn; /* Damaged Portion of Window */
rect *goAway, /* GoAway Box */
*shrink, /* Shrink Box */
*tRect, /* Rect containing Title */
*tbRect, /* Title Bar Rect */
*growBox; /* The Grow Box */
image *imagePtr; /* Image Storage for PopUp Windows */
LONG imageSize; /* Bytes allocated to Image Storage */
UBYTE *VScroll, /* Vertical Scroll Bar */
*HScroll; /* Horizontal Scroll Bar */
UBYTE *controls;
UBYTE *data;
struct _WINDOW *next, *prev;
};
typedef struct _WINDOW Window;
typedef struct _WINDOW *WindowPtr;
extern rect scrnRect;
extern COUNT _sysBack;
extern WindowPtr NewWindow();
extern void SaveWindow(), DrawWindow(), RestoreWindow(), RemoveWindow(),
ShowWindow(), HideWindow(), CloseWindow(), DisposWindow(),
HiliteWindow(), ColorWindow(), InitWindows(), DragWindow();
extern BOOL DragRect();
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/