home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpentk.zip / WBPENTK4.DSK / IDMDEF.H < prev    next >
C/C++ Source or Header  |  1994-10-06  |  7KB  |  118 lines

  1. /****************************** Module Header ******************************\
  2. *                                                                          *
  3. * Copyright (c) 1994 IBM Corporation                                       *
  4. *                                                                          *
  5. * Module Name: idmdef.h                                                    *
  6. *                                                                          *
  7. \***************************************************************************/
  8.  
  9. #ifndef __IDMDEF__
  10. #define __IDMDEF__
  11.  
  12. /********************************/
  13. /* IDM structure definitions    */
  14. /* are in idmtypes.idl          */
  15. /* and in passthru section      */
  16. /********************************/
  17.  
  18. /********************************/
  19. /* IDMCTLDATA.ulInkStyle values */
  20. /********************************/
  21. #define IDM_INK_SYSTEM  0x00000000      /* Use system inking       */
  22. #define IDM_INK_WINDOW  0x00000001      /* Use Window Inking       */
  23. #define IDM_INKTYPE_BITMASK (IDM_INK_SYSTEM+IDM_INK_WINDOW)
  24.  
  25. #define IDM_REMOVE_INK  0x00000000      /* Remove ink at end of operation */
  26. #define IDM_LEAVE_INK   0x00000010      /* Leave ink at end of operation */
  27. #define IDM_REMOVEINK_BITMASK (IDM_REMOVE_INK+IDM_LEAVE_INK)
  28.  
  29. #define IDM_INVALIDATE_RECT  0x00000000 /* invalidate the bounding box or the doodle */
  30. #define IDM_ERASE_BACKCOLOR  0x00000100 /* erase doodle to a background color        */
  31. #define IDM_ERASE_BACKBITMAP 0x00000200 /* erase doodle to a background bitmap       */
  32. #define IDM_ERASE_OPTION_BITMASK (IDM_ERASE_BACKCOLOR+IDM_ERASE_BACKBITMAP+IDM_INVALIDATE_RECT)
  33.  
  34. /**********************************/
  35. /* IDMCTLDATA.ulStrokeType values */
  36. /**********************************/
  37. #define ST_INK          0               /* Incoming strokes are ink strokes  */
  38. #define ST_ERASER       1               /* Incoming strokes are eraser stroke*/
  39.  
  40. /**********************************/
  41. /* IDMCTLDATA.ulIDMOp values      */
  42. /**********************************/
  43. #define IDM_GESTURE     0x00000001      /* Reco incoming strokes as gestures */
  44. #define IDM_TEXT        0x00000002      /* Reco incoming strokes are text */
  45. #define IDM_COLLECTSTROKE 0x00000004    /* Only collect incoming strokes */
  46.  
  47. /***********************************/
  48. /* IDMCTLDATA.ulDoodlePrePr values */
  49. /***********************************/
  50. #define DPP_DISPLAY     0x00000001      /* Display contents of doodle in hps */
  51. #define DPP_NOTHING     0x00000002      /* No preprocessing of doodle        */
  52. #define DPP_RECO        0x00000004      /* Send doodle contents to recognizer*/
  53.  
  54. /***********************************/
  55. /* IDMCTLDATA.ulRecoTrigger values */
  56. /***********************************/
  57. #define RTE_EXITPROX    0x00000001      /* WM_EXIT_PROXIMITY-Stop collecting */
  58. #define RTE_LIFTOFF     0x00000002      /* WM_LIFTOFF - Stop collecting      */
  59. #define RTE_WRTTIMEOUT  0x00000004      /* WM_WRITING_TIMEOUT-Stop collecting*/
  60. #define RTE_FOCUSLOST   0x00000008      /* Window Focus Lost-Stop collecting */
  61.  
  62. /***********************************/
  63. /* IDMCTLDATA.ulNotifyFlag values  */
  64. /***********************************/
  65. #define IDM_ALL              0x00FFFFFF /* All notification messages     */
  66. #define IDM_WRITING_MODE     0x00000001 /* Send IDM_WRITING_MODE         */
  67. #define IDM_STATE_CHANGE     0x00000002 /* Send IDM_STATE_CHANGE         */
  68. #define IDM_CONTROL_POINTER  0x00000004 /* Send IDM_CONTROL_POINTER      */
  69. #define IDM_ENTER_PROXIMITY  0x00000008 /* Send IDM_ENTER_PROXIMITY      */
  70. #define IDM_EXIT_PROXIMITY   0x00000010 /* Send IDM_EXIT_PROXIMITY       */
  71. #define IDM_TOUCHDOWN        0x00000020 /* Send IDM_TOUCHDOWN            */
  72. #define IDM_LIFTOFF          0x00000040 /* Send IDM_LIFTOFF              */
  73.  
  74. /********************************/
  75. /* IDMCTLDATA.ulTapFlags values */
  76. /********************************/
  77. /* These flags have no effect when ulIDMOp is set to IDM_GESTURES */
  78. #define IDM_FIRST_TAP_MOUSE   0x00000001    /* If first stroke is a tap, process as mouse emulation     */
  79. #define IDM_FIRST_TAP_STROKE  0x00000002    /* If first stroke is a tap, process as a stroke            */
  80. #define IDM_CHECK_ACTIVE      0x00000003    /* If window not active, treat first tap as mouse emulation */
  81. #define IDM_CHECK_FOCUS       0x00000004    /* If window doesn't have focus, treat first tap as mouse emulation */
  82. #define IDM_PROCESS_FLAGS     0x0000000F    /* If window doesn't have focus, treat first tap as mouse emulation */
  83. #define IDM_REDUCE_TAP_LENGTH 0x00008000    /* Reduce tap length on first
  84. stroke                        */
  85.  
  86. /***************************************************************/
  87. /* IDM States and Notification Sub-mesages of IDM_STATE_CHANGE */
  88. /***************************************************************/
  89. #define IDM_STOPPED          0x00000001  /* IDM stopped, no collect, no reco*/
  90. #define IDM_STARTED          0x00000002  /* IDM started, receiving msgs     */
  91. #define IDM_START_COLLECTING 0x00000004  /* IDM collecting strokes          */
  92. #define IDM_COLLECTING       0x00000004  /* IDM collecting strokes          */
  93. #define IDM_START_RECOING    0x00000008  /* IDM adding strokes to be recoed */
  94. #define IDM_RECOING          0x00000008  /* IDM adding strokes or recoing   */
  95. #define IDM_STOP_COLLECTING  0x00000010  /* IDM stopped collecting strokes  */
  96. #define IDM_STOP_RECOING     0x00000020  /* IDM done recoing strokes        */
  97.  
  98. /****************************************************************/
  99. /* MRESULTs from WM_RESULT message - choose one from next three */
  100. /****************************************************************/
  101. #define IDM_HANDLE_RESULT     0x00000000  /* Handle result for application   */
  102. #define IDM_DO_NOTHING        0x00000001  /* Application handled WM_RESULT   */
  103. #define IDM_HANDLE_ALT_RESULT 0x00000002  /* Handle alternate result for app */
  104.  
  105. /*******************************************************************/
  106. /* More MRESULTs from WM_RESULT message - choose one from next two */
  107. /*******************************************************************/
  108. #define IDM_SEND_WM_RECO      0x00000000  /* Send WM_RECO to application     */
  109. #define IDM_DONT_SEND_WM_RECO 0x00000010  /* Dont send WM_RECO to app        */
  110.  
  111. /***********************************************/
  112. /* idmStop - ulStopIndicator flags (bit field) */
  113. /***********************************************/
  114. #define SI_ABORT         0x00000001  /* Stop IDM, no IDM_NOTIFY/WM_RESULT   */
  115. #define SI_STOPNOW       0x00000002  /* Stop IDM, send IDM_NOTIFY/WM_RESULT */
  116.  
  117. #endif
  118.