home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / inkx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  3.8 KB  |  138 lines

  1. //***************************************************************************
  2. //
  3. //    Copyright (c) 1997-1999  Microsoft Corporation.  All Rights Reserved.
  4. //
  5. //    File:
  6. //            inkx.h
  7. //
  8. //    Description:
  9. //
  10. //            Include file for WinCE Ink Control.
  11. //
  12. //***************************************************************************
  13.  
  14. #ifndef _INKX_INCLUDED_
  15. #define _INKX_INCLUDED_
  16.  
  17. #include <windows.h>
  18. #include <commctrl.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif // __cplusplus
  23.  
  24.  
  25. // Constants
  26. #define WC_INKXA   "InkX"
  27. #define WC_INKXW  L"InkX"
  28. #ifdef UNICODE
  29. #define WC_INKX    WC_INKXW
  30. #else
  31. #define WC_INKX    WC_INKXA
  32. #endif
  33.  
  34. // Application calls this function to load and initialize the control properly.
  35. // The control can be inserted as a dialog custom control with class setting "InkX"
  36. //  (see constant WC_INKX above).
  37. #ifdef _WIN32_WCE_EMULATION
  38. void WINAPI InitInkX(void);
  39. #else
  40. void InitInkX(void);
  41. #endif
  42.  
  43. //---------------------------------------------------------
  44. // IM_SHOWCMDBAR
  45. //
  46. // Used to hide and show the command bar of the control.
  47. // 
  48. // wParam     = (BOOL)fShow;    // Show the command bar if TRUE.
  49. //                            // Hide the command bar if FALSE.
  50. // lParam     = 0;            // not used, must be zero
  51. // 
  52. // Return Value:
  53. //  This message does not return a value.
  54. //---------------------------------------------------------
  55. #define IM_SHOWCMDBAR    (WM_USER + 512)
  56.  
  57.  
  58. //---------------------------------------------------------
  59. // IM_GETDATALEN
  60. //
  61. // Used to return the length of the data.
  62. //
  63. // wParam     = 0;    // not used, must be zero
  64. // lParam     = 0;    // not used, must be zero 
  65. //
  66. // Return Values:
  67. //  This message returns the length in bytes of the ink data
  68. //  in the main compose window. Application uses this value
  69. //  to allocate buffer to store the ink data.
  70. //---------------------------------------------------------
  71. #define IM_GETDATALEN    (WM_USER + 514)
  72.  
  73.  
  74. //---------------------------------------------------------
  75. // IM_GETDATA
  76. //
  77. // Used to retrieve the data
  78. //
  79. // wParam     = (INT)cbBuffer;    // Length of the buffer in bytes.
  80. // lParam     = (BYTE *)lpBuffer;    // Pointer to the buffer 
  81. //
  82. // Return Value:
  83. //  This message returns the size of ink data stored in bytes.
  84. //---------------------------------------------------------
  85. #define IM_GETDATA        (WM_USER + 515)
  86.  
  87.  
  88. //---------------------------------------------------------
  89. // IM_SETDATA
  90. //
  91. // Used to set the data.  Stores the Ink data from a previous
  92. // IM_GETDATA call which will be inserted into the current
  93. // compose window.
  94. //
  95. // wParam     = (INT)cbInkData;        // Length of the ink data buffer
  96. // lParam     = (BYTE *)lpInkData;    // Pointer to ink data buffer 
  97. //
  98. // Return Value:
  99. //  This message does not return a value. 
  100. //---------------------------------------------------------
  101. #define IM_SETDATA        (WM_USER + 516)
  102.  
  103.  
  104. //---------------------------------------------------------
  105. // IM_CLEARALL
  106. //
  107. // Used to erase all contents from the current compose window.
  108. //
  109. // wParam     = 0;    // not used, must be zero
  110. // lParam     = 0;    // not used, must be zero 
  111. //
  112. // Return Value:
  113. //  This message does not return a value. 
  114. //---------------------------------------------------------
  115. #define IM_CLEARALL        (WM_USER + 519)
  116.  
  117. //---------------------------------------------------------
  118. // IM_REINIT
  119. //
  120. // Now the same as IM_CLEARALL -- constant is provided here
  121. //  for compatibility with previous header files.
  122. //---------------------------------------------------------
  123. #define IM_REINIT        (WM_USER + 521)
  124.  
  125.  
  126. //---------------------------------------------------------
  127. //
  128. // NOTE:  The standard edit control messages EM_GETMODIFY
  129. //          and EM_SETMODIFY are supported.
  130. //
  131. //---------------------------------------------------------
  132.  
  133. #ifdef __cplusplus
  134. }
  135. #endif // __cplusplus
  136.  
  137. #endif // _INKX_INCLUDED_
  138.