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

  1.  
  2. /* appdefs.h        Created:    1995-08-06  Revised:   1995-08-14    */
  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.    RECTL   rclDest;           /* Destination Rectangle        */
  45.    RECTL   rclImage;           /* Image Rectangle            */
  46.    POINTL  aptlArea[8];           /* Shadow Points            */
  47.    PBYTE   pb;               /* Bitmap Pointer            */
  48.    LONG       cColours;           /* Colours Count            */
  49.    } BITMAPSTACK, *PBITMAPSTACK;
  50.  
  51. /************************************************************************/
  52. /************************************************************************/
  53. /*    Global Variable    Definitions                    */
  54. /************************************************************************/
  55. /************************************************************************/
  56.  
  57. extern FONTMETRICS fm;           /* Font Metrics Info            */
  58. extern HSWITCH       hSwitch;       /* Task List    Entry Handle        */
  59. extern HAB       hAB;           /* Program Anchor Block Handle    */
  60.  
  61. extern HMQ  hmqROPs;           /* Program Message Queue Handle    */
  62. extern HWND hwndROPs;           /* Client Window Handle        */
  63. extern HWND hwndROPsFrame;       /* Frame Window Handle        */
  64. extern HWND hmenuROPs;           /* Menu Handle            */
  65.  
  66. extern HPOINTER    hptrArrow;       /* Arrow Pointer Handle        */
  67. extern HPOINTER    hptrWait;       /* Wait Pointer Handle        */
  68.  
  69. extern LONG    cxScreen;       /* Screen Width            */
  70.  
  71. extern CHAR    szBitmapFile[CCHMAXPATH]; /* Bitmap Filename Holder    */
  72.  
  73. extern BITMAPSTACK abm[32];       /* Bitmap Stack            */
  74. extern LONG    cBitmaps;       /* Bitmap Stack Count        */
  75. extern HBITMAP    hbmView;       /* Bitmap Handle            */
  76.  
  77. extern PBYTE    pb;           /* Bitmap File Data Pointer        */
  78. extern BOOL    f20Bitmap;       /* 2.x Bitmap Type            */
  79. extern BOOL    fWindowsBitmap;       /* Windows Bitmap Type        */
  80. extern LONG    iBitmap;       /* Single Bitmap Index        */
  81. extern LONG    iBitmapSelected;   /* Selected Bitmap Index        */
  82. extern BOOL    fBitmapArray;       /* Bitmap Array Flag            */
  83.  
  84. extern LONG    lRop;           /* ROP Value    Index            */
  85.  
  86. extern LONG    lPattern;       /* Pattern                */
  87. extern LONG    lFillColour;       /* Fill Colour            */
  88.  
  89. /************************************************************************/
  90. /************************************************************************/
  91. /*    Function Prototype Definitions                    */
  92. /************************************************************************/
  93. /************************************************************************/
  94.  
  95. VOID    InitApp(HWND hwndFrame,    HWND hwndClient, PSZ pszWindowListTitle);
  96. HWND    CreateStdWindow(HWND hwndParent, ULONG flStyle,    ULONG flCreateFlags,
  97.             PSZ pszClientClass, PSZ    pszTitle, ULONG    styleClient,
  98.             HMODULE    hmod, ULONG idResources, PHWND phwndClient,
  99.             LONG x,    LONG y,    LONG cx, LONG cy);
  100. MRESULT    PDSKeyProc(HWND    hWnd, ULONG msg, MPARAM    mp1, MPARAM mp2);
  101. VOID    PDSGetTemplate(HWND hWnd, ULONG    id);
  102.  
  103. MRESULT    EXPENTRY ROPsTestWndProc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  104. MRESULT    EXPENTRY OpenBitmapDlgProc(HWND    hWnd, ULONG msg, MPARAM    mp1, MPARAM mp2);
  105.  
  106. MRESULT    EXPENTRY ViewROPDlgProc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  107. MRESULT    EXPENTRY OptionsDlgProc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  108.