Annotation of os232sdk/toolkt20/c/samples/image/img_data.c, revision 1.1

1.1     ! root        1: /*==============================================================*\
        !             2:  *  img_data.c - Global data declarations
        !             3:  *      Created 1989, 1990 IBM, Microsoft Corp.
        !             4:  *--------------------------------------------------------------*
        !             5:  *
        !             6:  *--------------------------------------------------------------*
        !             7:  *
        !             8: \*==============================================================*/
        !             9: #define INCL_WINPOINTERS
        !            10: #include <os2.h>
        !            11: 
        !            12: HAB      vhab;                           /* anchor block handle */
        !            13: HDC      vhdcMem;               /* memory device context handle */
        !            14: HDC      vhdc;                  /* window device context handle */
        !            15: HPS      vhps       = (HPS)NULL;             /* image PS handle */
        !            16: HPS      vhpsMem    = (HPS)NULL;            /* memory PS handle */
        !            17: BOOL     vfImgLoaded  = FALSE;    /* initially image not loaded */
        !            18: BOOL     vfDetail     = FALSE;   /* view non-detailed initially */
        !            19: BOOL     vfMaximized  = FALSE;/* initially window not maximized */
        !            20: BOOL     vfHelpEnabled = FALSE;   /* set when help installed ok */
        !            21: HWND     vhwndFrame = (HWND)NULL;  /* image window frame handle */
        !            22: HWND     vhwndClient;              /* main window client handle */
        !            23: HWND     vhwndVScroll;             /* vertical scrollbar handle */
        !            24: HWND     vhwndHScroll;           /* horizontal scrollbar handle */
        !            25: HWND     vhwndViewForeClr = (HWND)NULL;/* foregrnd color handle */
        !            26: HWND     vhwndViewBackClr = (HWND)NULL;/* backgrnd color handle */
        !            27: HWND     vhwndMenu;                          /* menu bar handle */
        !            28: LONG     vlXScreen;                             /* screen width */
        !            29: LONG     vlYScreen;                            /* screen height */
        !            30: LONG     vlcxVScroll;                /* vertical scrollbar size */
        !            31: LONG     vlcyHScroll;              /* horizontal scrollbar size */
        !            32: LONG     vlcyTitle;                          /* titlebar height */
        !            33: LONG     vlcyMenu;                            /* menubar height */
        !            34: LONG     vlcxBorder;                       /* size border width */
        !            35: LONG     vlcyBorder;                      /* size border height */
        !            36: LONG     vlForeClr = CLR_WHITE;     /* initial foreground color */
        !            37: LONG     vlBackClr = CLR_BLACK;     /* initial background color */
        !            38: #if (defined(PORT_16) || defined(PORT_32))
        !            39: PBYTE vpbImgBuf;                        /* image storage buffer */
        !            40: #else
        !            41: BYTE _far16 *vpbImgBuf;                 /* image storage buffer */
        !            42: #endif
        !            43: PFNWP    vpfnwpFrame;            /* main frame-window procedure */
        !            44: SIZEL    vsizlImg;             /* width and height of the image */
        !            45: ULONG    vulScrollYMax;               /* maximum Y scroll range */
        !            46: ULONG    vulScrollXMax;               /* maximum X scroll range */
        !            47: POINTL   vptlSave = {0L, 0L};          /* save/restore position */
        !            48: HBITMAP  vhbm;                                /* bit-map handle */
        !            49: HPOINTER vhptrWait;                 /* system hourglass pointer */
        !            50: HPOINTER vhptrArrow;                    /* system arrow pointer */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.