home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / shapewin.zip / shapewin.h < prev    next >
C/C++ Source or Header  |  1998-09-22  |  1KB  |  40 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.  * Window Procedure for Image Window Control
  26.  */
  27.  
  28. MRESULT EXPENTRY ShapeWinProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) ;
  29.  
  30. /*
  31.  * Window Messages Specific for Shape Window
  32.  */
  33.  
  34. #define SHAPEWIN_MSG_UPDATE (WM_USER + 1)
  35.     /* SHAPEWIN_MSG_UPDATE          Update Drawing Image                    */
  36.     /*      MP1 PRECTL              Update Region, NULL for entire region   */
  37.     /*      MP2 NULL                not used                                */
  38.  
  39. #endif  /* _SHAPEWIN_H */
  40.