Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.3 KiB

  1. #ifndef _CONST_H_
  2. #define _CONST_H_
  3. // Constants
  4. #define MB_NUM_CANDIDATES 9
  5. #define INVALID_CHAR 0xffff
  6. #define TIMER_ID 100
  7. //#define TIMER_AUTORECOG 101
  8. #define BUTTON_HEIGHT 18
  9. #define BUTTON_WIDTH 62 //38 //36
  10. #define TOTALLOGICALBOX 700
  11. //#define PadWnd_Height 120 //The height of HwxPadApplet window in pixel
  12. #define PadWnd_Height 180 //The height of HwxPadApplet window in pixel
  13. #define INKBOXSIZE_MIN 148 // minimum inkbox size 50 by 50 in pixel
  14. #define LISTVIEWWIDTH_MIN 65 // PadListView minimum width in pixel
  15. #define Box_Border 4 //Distance between two writing boxes
  16. #define CACMBHEIGHT_MIN 90
  17. #define FONT_SIZE 12
  18. #define MACAW_REDRAW_BACKGROUND 0x0001
  19. #define MACAW_REDRAW_INK 0x0002
  20. // CHwxThreadMB/CHwxThreadCAC user defined thread messages
  21. #define THRDMSG_ADDINK WM_USER + 500 // WPARAM= box size, LPARAM= pStroke
  22. #define THRDMSG_RECOGNIZE WM_USER + 501 // WPARAM= logical box,LPARAM= 0
  23. //#define THRDMSG_CHAR WM_USER + 502 // WPARAM= wchar,LPARAM= 0
  24. #define THRDMSG_SETMASK WM_USER + 503 // WPARAM= mask, LPARAM= 0
  25. #define THRDMSG_SETCONTEXT WM_USER + 504 // WPARAM= wchar,LPARAM= 0
  26. #define THRDMSG_SETGUIDE WM_USER + 505 // WPARAM= size, LPARAM= 0
  27. #define THRDMSG_EXIT WM_USER + 506 // WPARAM= 0,LPARAM= 0
  28. // CHwxMB/CHwxCAC user defined WINDOW messages
  29. #define MB_WM_ERASE WM_USER + 1000 // WPARAM= 0,LPARAM= 0
  30. #define MB_WM_DETERMINE WM_USER + 1001 // WPARAM= 0,LPARAM= 0
  31. #define MB_WM_HWXCHAR WM_USER + 1002 // WPARAM= pHwxResultPri,LPARAM= 0
  32. //#define MB_WM_COMCHAR WM_USER + 1003 // WPARAM= 0,LPARAM= 0
  33. #define MB_WM_COPYINK WM_USER + 1004 // WPARAM= 0,LPARAM= 0
  34. #define CAC_WM_RESULT WM_USER + 1005 // WPARAM= type, HIWORD(LPARAM)= rank, LOWORD(LPARAM)= code
  35. #define CAC_WM_SENDRESULT WM_USER + 1006
  36. #define CAC_WM_DRAWSAMPLE WM_USER + 1007
  37. #define CAC_WM_SHOWRESULT WM_USER + 1008
  38. // CAC recognitio output
  39. #define FULLLIST 8
  40. #define PREFIXLIST 16
  41. #define FREELIST 16
  42. #define LISTTOTAL (FULLLIST+PREFIXLIST+FREELIST)
  43. #define LISTVIEW_COLUMN 8
  44. #define IDC_CACINPUT 0x7FFA //980706:ToshiaK for Help identifier
  45. #define IDC_MBINPUT 0x7FFB //980706:ToshiaK for Help identifier
  46. #define IDC_CACLISTVIEW 0x7FFF
  47. #endif // _CONST_H_