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.

78 lines
2.2 KiB

  1. //===========================================================================
  2. // CALOCAL.H
  3. //===========================================================================
  4. //===========================================================================
  5. // (C) Copyright 1997 Microsoft Corp. All rights reserved.
  6. //
  7. // You have a royalty-free right to use, modify, reproduce and
  8. // distribute the Sample Files (and/or any modified version) in
  9. // any way you find useful, provided that you agree that
  10. // Microsoft has no warranty obligations or liability for any
  11. // Sample Application Files which are modified.
  12. //===========================================================================
  13. #ifndef _CALOCAL_H
  14. #define _CALOCAL_H
  15. #include <regstr.h>
  16. #define STR_MAX_LEN 255
  17. #define STR_LEN_128 128
  18. #define STR_LEN_64 64
  19. #define STR_LEN_32 32
  20. #define DELTA 5
  21. #define RANGE_MIN 0
  22. #define RANGE_MAX 65535
  23. #define ID_CAL_TIMER 18
  24. #define CALIBRATION_INTERVAL 85
  25. #define ACTIVE_COLOR RGB( 255, 0, 0 )
  26. #define INACTIVE_COLOR RGB( 128, 0, 0 )
  27. typedef enum {
  28. JCS_INIT=-1,
  29. JCS_XY_CENTER1,
  30. JCS_XY_MOVE,
  31. JCS_XY_CENTER2,
  32. #ifdef DEADZONE
  33. JCS_DEADZONE,
  34. #endif
  35. JCS_Z_MOVE,
  36. JCS_R_MOVE,
  37. JCS_U_MOVE,
  38. JCS_V_MOVE,
  39. JCS_S0_MOVE,
  40. JCS_S1_MOVE,
  41. #ifdef WE_SUPPORT_CALIBRATING_POVS
  42. JCS_POV_MOVEUP,
  43. JCS_POV_MOVERIGHT,
  44. JCS_POV_MOVEDOWN,
  45. JCS_POV_MOVELEFT,
  46. #endif // WE_SUPPORT_CALIBRATING_POVS
  47. JCS_FINI
  48. } cal_states;
  49. /***************************************************************************
  50. CALIBRATION SPECIFIC FUNCTION DEFINITIONS
  51. ***************************************************************************/
  52. static void CalStateChange ( HWND hDlg, BYTE nDeviceFlags );
  53. static void EnableXYWindows ( HWND hDlg );
  54. static BOOL GetOEMCtrlString ( LPTSTR lptStr, DWORD *nStrLen);
  55. static BOOL CollectCalInfo ( HWND hDlg, LPDIJOYSTATE pdiJoyState );
  56. static HRESULT SetCalibrationMode( BOOL bSet );
  57. #ifdef WE_SUPPORT_CALIBRATING_POVS
  58. //static void ChangeIcon ( HWND hDlg, short idi );
  59. //static void SetDefaultButton( HWND hDlg, HWND hCtrl );
  60. #endif //WE_SUPPORT_CALIBRATING_POVS
  61. #endif //_CALOCAL_H