Counter Strike : Global Offensive Source Code
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.

70 lines
2.3 KiB

  1. #include <wintab.h>
  2. #define IDM_TEST 0
  3. #define IDM_EDIT 1
  4. #define IDM_DEFCTX 2
  5. #define IDM_DEFSCTX 3
  6. #define IDM_HELP 4
  7. #define IDM_CSRMENU 3
  8. #define IDM_ABOUT 10
  9. #define IDM_DEFDIG 11
  10. #define IDM_DEFSYS 12
  11. #define IDM_CBRTEST 13
  12. #define IDM_BMSTEST 14
  13. #define IDM_PMSTEST 15
  14. #define IDM_PRSTEST 16
  15. #define IDM_BUTTMAPS 17
  16. #define IDM_OBT 18
  17. #define IDM_DEVICES 20
  18. #define IDM_CURSORS 30
  19. #define IDM_OBTDEVS 40
  20. #define IDM_RESET_DEFDIG 40005
  21. #define IDM_RESET_DEFSYS 40006
  22. #define IDM_HMGRTEST 40007
  23. #define IDM_DEFDEV_DIG 40009
  24. #define IDM_DEFDEV_SYS 40010
  25. #define IDM_XBTN_DIG 40011
  26. #define IDM_XBTN_SYS 40012
  27. #define IDM_CSRMASK_DIG 40013
  28. #define IDM_CSRMASK_SYS 40014
  29. /* For IDD_INFOLIST */
  30. #define LBC_TITLE 3
  31. #define LBC_LISTBOX 4
  32. #define LBC_BASECAT 5
  33. int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  34. BOOL InitApplication(HANDLE);
  35. BOOL InitInstance(HANDLE, int);
  36. LRESULT FAR PASCAL MainWndProc(HWND, unsigned, WPARAM, LPARAM);
  37. BOOL FAR PASCAL About(HWND, unsigned, WPARAM, LPARAM);
  38. /* If the exe imports WTMgrDefContextEx(), then we won't be able to run with
  39. older Wintab.dll/Wintab32.dll's which are don't support Wintab Spec 1.1.
  40. Instead, we'll try to GetProcAddress it ourselves. On failure, just disable
  41. features that depend on it. */
  42. extern HCTX (API * pWTMgrDefContextEx)(HMGR, UINT, BOOL);
  43. #define WTMgrDefContextEx( a, b, c ) pWTMgrDefContextEx( (a), (b), (c) )
  44. BOOL CALLBACK CursInfoDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LONG lParam);
  45. void set_ctx_BtnMask( HWND hWnd, HCTX hCtx, LOGCONTEXT * lc );
  46. void set_ctx_MoveMask( HWND hWnd, HMGR hMgr, HCTX hCtx );
  47. /* tests.c */
  48. void BMSTest(HWND hWnd);
  49. void PMSTest(HWND hWnd);
  50. void PRSTest(HWND hWnd);
  51. void HMGRTest(HWND hWnd);
  52. /* test_bitboxes() - use a static text box for selecting/changing a list of bits, hex bytes,
  53. or other evenly spaced things. */
  54. /* LOWORD(pos) = x coord */
  55. /* HIWORD(pos) = y coord */
  56. /* box_id = an array of dialog ID's, one for each box */
  57. /* ndiv = number of divisions per box */
  58. /* nboxes = number of boxes */
  59. /* return value = selection number or -1 if point is outside of all boxes */
  60. int test_bitboxes( HWND hDlg, unsigned long pos, unsigned ndiv, int nboxes, const int *box_id );