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

  1.  
  2. /* appdefs.h        Created:    1995-10-18  Revised:   1995-10-18    */
  3.  
  4. /* Module Definition Header                        */
  5.  
  6. /************************************************************************/
  7. /************************************************************************/
  8. /************************************************************************/
  9. /* DISCLAIMER OF WARRANTIES:                        */
  10. /* -------------------------                        */
  11. /* The following [enclosed] code is sample code    created    by IBM        */
  12. /* Corporation and Prominare Inc.  This    sample code is not part    of any    */
  13. /* standard IBM    product    and is provided    to you solely for the purpose    */
  14. /* of assisting    you in the development of your applications.  The code    */
  15. /* is provided "AS IS",    without    warranty of any    kind.  Neither IBM nor    */
  16. /* Prominare shall be liable for any damages arising out of your    */
  17. /* use of the sample code, even    if they    have been advised of the    */
  18. /* possibility of such damages.                        */
  19. /************************************************************************/
  20. /************************************************************************/
  21. /************************************************************************/
  22. /*               D I S C L A I M E R                */
  23. /* This    code is    provided on an as is basis with    no implied support.    */
  24. /* It should be    considered freeware that cannot    be rebundled as        */
  25. /* part    of a larger "*ware" offering without our consent.        */
  26. /************************************************************************/
  27. /************************************************************************/
  28. /************************************************************************/
  29.  
  30. /* Copyright ╕ International Business Machines Corp., 1995.        */
  31. /* Copyright ╕ 1995  Prominare Inc.  All Rights    Reserved.        */
  32.  
  33. /* --------------------------------------------------------------------    */
  34.  
  35.  
  36. #define    RGBCLR_PALEGRAY        0x00c9c9c9L
  37.  
  38. #define    RGBCLR_SHADOW        0x00808080L
  39. #define    RGBCLR_DIALOGBACKGROUND    0x00ccccccL
  40.  
  41. typedef    struct _BITMAPSTACK
  42.    {
  43.    HBITMAP hbm;               /* Bitmap Handle            */
  44.    HBITMAP hbmMask;           /* Bitmap Handle            */
  45.    HBITMAP hbmImage;           /* Bitmap Handle            */
  46.    RECTL   rclDest;           /* Destination Rectangle        */
  47.    RECTL   rclImage;           /* Image Rectangle            */
  48.    POINTL  aptlArea[8];           /* Shadow Points            */
  49.    LONG       cColours;           /* Colours Count            */
  50.    LONG       cx;               /* Bitmap Width            */
  51.    LONG       cy;               /* Bitmap Height            */
  52.    } BITMAPSTACK, *PBITMAPSTACK;
  53.  
  54. /************************************************************************/
  55. /************************************************************************/
  56. /*    Global Variable    Definitions                    */
  57. /************************************************************************/
  58. /************************************************************************/
  59.  
  60. extern FONTMETRICS fm;           /* Font Metrics Info            */
  61. extern HSWITCH       hSwitch;       /* Task List    Entry Handle        */
  62. extern HAB       hAB;           /* Program Anchor Block Handle    */
  63.  
  64. extern HMQ  hmqView;           /* Program Message Queue Handle    */
  65. extern HWND hwndView;           /* Client Window Handle        */
  66. extern HWND hwndViewFrame;       /* Frame Window Handle        */
  67. extern HWND hmenuView;           /* Menu Handle            */
  68.  
  69. extern HPOINTER    hptrArrow;       /* Arrow Pointer Handle        */
  70. extern HPOINTER    hptrWait;       /* Wait Pointer Handle        */
  71.  
  72. extern LONG    cxScreen;       /* Screen Width            */
  73.  
  74. extern CHAR    szBitmapFile[CCHMAXPATH]; /* Bitmap Filename Holder    */
  75.  
  76. extern BITMAPSTACK abm[32];       /* Bitmap Stack            */
  77. extern LONG    cBitmaps;       /* Bitmap Stack Count        */
  78. extern HBITMAP    hbmView;       /* Bitmap Handle            */
  79.  
  80. extern PBYTE    pb;           /* Bitmap File Data Pointer        */
  81. extern BOOL    f20Bitmap;       /* 2.x Bitmap Type            */
  82. extern BOOL    fWindowsBitmap;       /* Windows Bitmap Type        */
  83. extern LONG    iBitmap;       /* Single Bitmap Index        */
  84. extern LONG    iBitmapSelected;   /* Selected Bitmap Index        */
  85. extern BOOL    fBitmapArray;       /* Bitmap Array Flag            */
  86.  
  87. extern LONG    lRop;           /* ROP Value    Index            */
  88.  
  89. extern LONG    lPattern;       /* Pattern                */
  90. extern LONG    lFillColour;       /* Fill Colour            */
  91.  
  92. /************************************************************************/
  93. /************************************************************************/
  94. /*    Function Prototype Definitions                    */
  95. /************************************************************************/
  96. /************************************************************************/
  97.  
  98. VOID    InitApp(HWND hwndFrame,    HWND hwndClient, PSZ pszWindowListTitle);
  99. HWND    CreateStdWindow(HWND hwndParent, ULONG flStyle,    ULONG flCreateFlags,
  100.             PSZ pszClientClass, PSZ    pszTitle, ULONG    styleClient,
  101.             HMODULE    hmod, ULONG idResources, PHWND phwndClient,
  102.             LONG x,    LONG y,    LONG cx, LONG cy);
  103. MRESULT    PDSKeyProc(HWND    hWnd, ULONG msg, MPARAM    mp1, MPARAM mp2);
  104. VOID    PDSGetTemplate(HWND hWnd, ULONG    id);
  105.  
  106. MRESULT    EXPENTRY ViewWndProc(HWND hWnd,    ULONG msg, MPARAM mp1, MPARAM mp2);
  107. MRESULT    EXPENTRY OpenDlgProc(HWND hWnd,    ULONG msg, MPARAM mp1, MPARAM mp2);
  108.  
  109. MRESULT    EXPENTRY ViewDlgProc(HWND hWnd,    ULONG msg, MPARAM mp1, MPARAM mp2);
  110.  
  111. VOID GetIconPointer(PSZ    pszFileName, BOOL fIcon);
  112.