home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / shpwn200.zip / shapewin.200 / shapewin.h < prev    next >
C/C++ Source or Header  |  2001-04-04  |  1KB  |  46 lines

  1. /*
  2.  * shapewin.h - Shape Window Control, external definitions
  3.  */
  4.  
  5. #ifndef _SHAPEWIN_H
  6. #define _SHAPEWIN_H
  7.  
  8. /*
  9.  * Name of Control
  10.  */
  11.  
  12. #define ShapeWinName    "ShapeWin"
  13.  
  14. /*
  15.  * Control Data for Shape Window Control
  16.  */
  17.  
  18. typedef struct _SHAPEWIN {
  19.     SHORT   cx, cy  ;       /* Size of Shape                            */
  20.     HPS     hpsMask ;       /* Mask Pattern, defines Shape of Window    */
  21.     HPS     hpsDraw ;       /* Draw Data, displayed on Shape Window     */
  22. } SHAPEWIN, *PSHAPEWIN ;
  23.  
  24. /*
  25.  * Register Shape Window Control
  26.  */
  27.  
  28. BOOL    ShapeWinInit(HAB hab) ;
  29.  
  30. /*
  31.  * Window Procedure for Shape Window Control
  32.  */
  33.  
  34. MRESULT EXPENTRY ShapeWinProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) ;
  35.  
  36. /*
  37.  * Window Messages Specific for Shape Window
  38.  */
  39.  
  40. #define SHAPEWIN_MSG_UPDATE (WM_USER + 1)
  41.     /* SHAPEWIN_MSG_UPDATE          Update Drawing Image                    */
  42.     /*      MP1 PRECTL              Update Region, NULL for entire region   */
  43.     /*      MP2 NULL                not used                                */
  44.  
  45. #endif  /* _SHAPEWIN_H */
  46.