home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / STROKE.H < prev    next >
C/C++ Source or Header  |  1994-01-13  |  3KB  |  50 lines

  1. #ifndef OS2ME_INCLUDED
  2. #include <os2me.h>
  3. #endif
  4.  
  5. #ifndef PENPMH_INCLUDED
  6. #include <penpm.h>
  7. #endif
  8.  
  9. #define  WC_INK_WINDOW        "MYINKINGWINDOW"
  10.  
  11. #define  ID_INK_WINDOW        999
  12.  
  13. #define  IME_NO_ERROR                  0
  14. #define  IME_COULD_NOT_REGISTER_CLASS  1
  15. #define  IME_COULD_NOT_CREATE_WINDOW   2
  16. #define  IME_INVALID_POINTER           3
  17.  
  18. #define  IDD_AUDIO                    15
  19.  
  20. /*****************************************************************************
  21. * This is the definition of the inking window data structure.                *
  22. *****************************************************************************/
  23. typedef struct                  /********************************************/
  24. {                               /* Declaration of an application data type  */
  25.    HWND          hwnd;          /* My window handle                         */
  26.    HWND          hwndParent;    /* My parent window handle                  */
  27.    HPS           hps;           /* Handle to presentation space             */
  28.    HAB           hab;           /* Handle to anchor block                   */
  29.    HDC           hdc;           /* Handle to device context                 */
  30.    POINTL        points;        /* Point structure for saving last point    */
  31.    SIZEL         OrgWindowSize; /* Size of window at time of stroke input   */
  32.    LONG          CurrentColor;  /* Current ink color                        */
  33.    PSTROKEDATA   pStrokeHead;   /* Pointer to first stroke in linked list   */
  34.                                 /*    of high resolution data               */
  35.    PSTROKEDATA   pScaledHead;   /* Pointer to first stroke in linked list   */
  36.                                 /*    of scaled data                        */
  37.    PSTROKEDATA   pCurrStroke;   /* Pointer to current stroke data           */
  38.    LONG          NumSegments;   /* Number of graphic segments in PS         */
  39.    PPOINTL       pCurrPoint;    /* Pointer to current point                 */
  40.    USHORT        NumPointsLeft; /* Number of points left to be inked        */
  41.    BOOL          fPlay;         /* Boolean flag to indicate play status     */
  42.    BOOL          fRecord;       /* Boolean flag to indicate recording status*/
  43.    BOOL          td;            /* Boolean flag to indicate touchdown status*/
  44. }                               /*    TRUE = TOUCHDOWN, FALSE = LIFTOFF     */
  45. MYWINDOWDATA;                   /* Structure data type                      */
  46.                                 /********************************************/
  47.  
  48. typedef MYWINDOWDATA *PMYWINDOWDATA; /* Pointer to structure data type      */
  49.  
  50.