home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bmp3.zip / APPDEFS.C next >
C/C++ Source or Header  |  1995-10-18  |  3KB  |  82 lines

  1. #pragma    title("Icon/Pointer Viewer  --  Version 1  --  (AppDefs.C)")
  2. #pragma    subtitle("   Module Purpose - Interface Definitions")
  3.  
  4. #define    INCL_WIN           /* Include OS/2 PM Windows Interface    */
  5.  
  6. #include <os2.h>
  7.  
  8. #include "appdefs.h"
  9. #include "viewico.h"
  10.  
  11. /* This    module contains    global application definitions.            */
  12.  
  13. /* Filename:   AppDefs.C                        */
  14.  
  15. /*  Version:   1                            */
  16. /*  Created:   1995-10-18                        */
  17. /*  Revised:   1995-10-18                        */
  18.  
  19. /* Routines:   None                            */
  20.  
  21.  
  22. /************************************************************************/
  23. /************************************************************************/
  24. /************************************************************************/
  25. /* DISCLAIMER OF WARRANTIES:                        */
  26. /* -------------------------                        */
  27. /* The following [enclosed] code is sample code    created    by IBM        */
  28. /* Corporation and Prominare Inc.  This    sample code is not part    of any    */
  29. /* standard IBM    product    and is provided    to you solely for the purpose    */
  30. /* of assisting    you in the development of your applications.  The code    */
  31. /* is provided "AS IS",    without    warranty of any    kind.  Neither IBM nor    */
  32. /* Prominare shall be liable for any damages arising out of your    */
  33. /* use of the sample code, even    if they    have been advised of the    */
  34. /* possibility of such damages.                        */
  35. /************************************************************************/
  36. /************************************************************************/
  37. /************************************************************************/
  38. /*               D I S C L A I M E R                */
  39. /* This    code is    provided on an as is basis with    no implied support.    */
  40. /* It should be    considered freeware that cannot    be rebundled as        */
  41. /* part    of a larger "*ware" offering without our consent.        */
  42. /************************************************************************/
  43. /************************************************************************/
  44. /************************************************************************/
  45.  
  46. /* Copyright ╕ International Business Machines Corp., 1995.        */
  47. /* Copyright ╕ 1995  Prominare Inc.  All Rights    Reserved.        */
  48.  
  49. /* --------------------------------------------------------------------    */
  50.  
  51. FONTMETRICS fm;               /* Font Metrics Info            */
  52. HAB        hAB;           /* Program Anchor Block Handle    */
  53. HSWITCH        hSwitch;           /* Task List    Entry Handle        */
  54.  
  55. HMQ  hmqView;               /* Program Message Queue Handle    */
  56. HWND hwndView;               /* Client Window Handle        */
  57. HWND hwndViewFrame;           /* Frame Window Handle        */
  58. HWND hmenuView;               /* Menu Handle            */
  59.  
  60. HPOINTER hptrArrow;           /* Arrow Pointer Handle        */
  61. HPOINTER hptrWait;           /* Wait Pointer Handle        */
  62.  
  63. LONG     cxScreen;           /* Screen Width            */
  64.  
  65. CHAR     szBitmapFile[CCHMAXPATH]; /* Bitmap Filename Holder        */
  66.  
  67. BITMAPSTACK abm[32];           /* Bitmap Stack Handles        */
  68. LONG     cBitmaps = 0L;           /* Bitmap Stack Count        */
  69. HBITMAP    hbmView    = 0;           /* Bitmap Handle            */
  70.  
  71. PBYTE     pb;               /* Bitmap Data File Pointer        */
  72. BOOL     f20Bitmap;           /* 2.x Bitmap Type            */
  73. BOOL     fWindowsBitmap;       /* Windows Bitmap Type        */
  74. LONG     iBitmap;           /* Single Bitmap Index        */
  75. LONG     iBitmapSelected;       /* Selected Bitmap Index        */
  76. BOOL     fBitmapArray;           /* Bitmap Array Flag            */
  77.  
  78. LONG     lRop;               /* ROP Value    Index            */
  79.  
  80. LONG     lPattern = PATSYM_SOLID;  /* Pattern                */
  81. LONG     lFillColour = CLR_WHITE;  /* Fill Colour            */
  82.