home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bmp1.zip / AppDefs.C next >
C/C++ Source or Header  |  1995-07-15  |  3KB  |  78 lines

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