home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gpiimage.zip / IMG_DATA.C < prev    next >
C/C++ Source or Header  |  1998-04-20  |  4KB  |  77 lines

  1. /**************************************************************************
  2.  *  File name  :  img_data.c
  3.  *
  4.  *  Description:  This module contains global data declarations for the
  5.  *                PM Porting Sample.
  6.  *
  7.  *  Concepts   :  global data
  8.  *
  9.  *  API's      :  [none]
  10.  *
  11.  *  Required
  12.  *    Files    :  OS2.H
  13.  *
  14.  *  Copyright (C) 1991-1993 IBM Corporation
  15.  *
  16.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  17.  *      sample code created by IBM Corporation. This sample code is not
  18.  *      part of any standard or IBM product and is provided to you solely
  19.  *      for  the purpose of assisting you in the development of your
  20.  *      applications.  The code is provided "AS IS", without
  21.  *      warranty of any kind.  IBM shall not be liable for any damages
  22.  *      arising out of your use of the sample code, even if they have been
  23.  *      advised of the possibility of such damages.                                                    *
  24.  *************************************************************************/
  25.  
  26. #define INCL_WINPOINTERS
  27. #define INCL_WINSTDFILE
  28. #include <os2.h>
  29.  
  30. /*
  31.  * Global data declarations
  32.  */
  33.  
  34. HAB      vhab;                              /* anchor block handle */
  35. HDC      vhdcMem;                  /* memory device context handle */
  36. HDC      vhdc;                     /* window device context handle */
  37. HPS      vhps       = (HPS)NULLHANDLE;          /* image PS handle */
  38. HPS      vhpsMem    = (HPS)NULLHANDLE;         /* memory PS handle */
  39. BOOL     vfImgLoaded  = FALSE;       /* initially image not loaded */
  40. BOOL     vfDetail     = FALSE;      /* view non-detailed initially */
  41. BOOL     vfMaximized  = FALSE;   /* initially window not maximized */
  42. BOOL     vfHelpEnabled = FALSE;      /* set when help installed ok */
  43. HWND     vhwndFrame = (HWND)NULLHANDLE; /* img window frame handle */
  44. HWND     vhwndClient;                 /* main window client handle */
  45. HWND     vhwndVScroll;                /* vertical scrollbar handle */
  46. HWND     vhwndHScroll;              /* horizontal scrollbar handle */
  47. HWND     vhwndViewForeClr = (HWND)NULLHANDLE; /* foreground color  */
  48. HWND     vhwndViewBackClr = (HWND)NULLHANDLE; /* background color  */
  49. HWND     vhwndMenu;                             /* menu bar handle */
  50. LONG     vlXScreen;                                /* screen width */
  51. LONG     vlYScreen;                               /* screen height */
  52. LONG     vlcxVScroll;                   /* vertical scrollbar size */
  53. LONG     vlcyHScroll;                 /* horizontal scrollbar size */
  54. LONG     vlcyTitle;                             /* titlebar height */
  55. LONG     vlcyMenu;                               /* menubar height */
  56. LONG     vlcxBorder;                          /* size border width */
  57. LONG     vlcyBorder;                         /* size border height */
  58. LONG     vlForeClr = CLR_WHITE;        /* initial foreground color */
  59. LONG     vlBackClr = CLR_BLACK;        /* initial background color */
  60. #if (defined(PORT_16) || defined(PORT_32))
  61. PBYTE vpbImgBuf;                           /* image storage buffer */
  62. #else
  63. BYTE _far16 *vpbImgBuf;                    /* image storage buffer */
  64. #endif
  65. PFNWP    vpfnwpFrame;               /* main frame-window procedure */
  66. SIZEL    vsizlImg;                /* width and height of the image */
  67. ULONG    vulScrollYMax;                  /* maximum Y scroll range */
  68. ULONG    vulScrollXMax;                  /* maximum X scroll range */
  69. POINTL   vptlSave = {0L, 0L};             /* save/restore position */
  70. HBITMAP  vhbm;                                   /* bit-map handle */
  71. HPOINTER vhptrWait;                    /* system hourglass pointer */
  72. HPOINTER vhptrArrow;                       /* system arrow pointer */
  73. #ifndef PORT_16
  74. FILEDLG  vfdg;                            /* file dialog structure */
  75. #endif
  76. /***************************  End of img_data.c  *************************/
  77.