|
|
Microsoft OS/2 SDK 2.0 05-30-1990
/*==============================================================*\
* img_data.c - Global data declarations
* Created 1989, 1990 IBM, Microsoft Corp.
*--------------------------------------------------------------*
*
*--------------------------------------------------------------*
*
\*==============================================================*/
#define INCL_WINPOINTERS
#include <os2.h>
HAB vhab; /* anchor block handle */
HDC vhdcMem; /* memory device context handle */
HDC vhdc; /* window device context handle */
HPS vhps = (HPS)NULL; /* image PS handle */
HPS vhpsMem = (HPS)NULL; /* memory PS handle */
BOOL vfImgLoaded = FALSE; /* initially image not loaded */
BOOL vfDetail = FALSE; /* view non-detailed initially */
BOOL vfMaximized = FALSE;/* initially window not maximized */
BOOL vfHelpEnabled = FALSE; /* set when help installed ok */
HWND vhwndFrame = (HWND)NULL; /* image window frame handle */
HWND vhwndClient; /* main window client handle */
HWND vhwndVScroll; /* vertical scrollbar handle */
HWND vhwndHScroll; /* horizontal scrollbar handle */
HWND vhwndViewForeClr = (HWND)NULL;/* foregrnd color handle */
HWND vhwndViewBackClr = (HWND)NULL;/* backgrnd color handle */
HWND vhwndMenu; /* menu bar handle */
LONG vlXScreen; /* screen width */
LONG vlYScreen; /* screen height */
LONG vlcxVScroll; /* vertical scrollbar size */
LONG vlcyHScroll; /* horizontal scrollbar size */
LONG vlcyTitle; /* titlebar height */
LONG vlcyMenu; /* menubar height */
LONG vlcxBorder; /* size border width */
LONG vlcyBorder; /* size border height */
LONG vlForeClr = CLR_WHITE; /* initial foreground color */
LONG vlBackClr = CLR_BLACK; /* initial background color */
#if (defined(PORT_16) || defined(PORT_32))
PBYTE vpbImgBuf; /* image storage buffer */
#else
BYTE _far16 *vpbImgBuf; /* image storage buffer */
#endif
PFNWP vpfnwpFrame; /* main frame-window procedure */
SIZEL vsizlImg; /* width and height of the image */
ULONG vulScrollYMax; /* maximum Y scroll range */
ULONG vulScrollXMax; /* maximum X scroll range */
POINTL vptlSave = {0L, 0L}; /* save/restore position */
HBITMAP vhbm; /* bit-map handle */
HPOINTER vhptrWait; /* system hourglass pointer */
HPOINTER vhptrArrow; /* system arrow pointer */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.