Source code of Windows XP (NT5)
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.

98 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. timectrl.h
  5. Abstract:
  6. For implementing a dialog control for setting time values
  7. Environment:
  8. Fax driver user interface
  9. Revision History:
  10. 01/16/96 -davidx-
  11. Created it.
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _TIMECTRL_H_
  16. #define _TIMECTRL_H_
  17. //
  18. // A time control consist of the following components:
  19. // a static text field with WS_EX_CLIENTEDGE style - encloses all other fields
  20. // an editable text field - hour
  21. // a static text field - time separator
  22. // an editable text field - minute
  23. // a listbox - AM/PM
  24. // a spin control - up/down arrow
  25. //
  26. // A time control is identified by the item ID of the first static text field.
  27. // Rest of the items must have consecutive IDs starting from that.
  28. //
  29. #define TC_BORDER 0
  30. #define TC_HOUR 1
  31. #define TC_TIME_SEP 2
  32. #define TC_MINUTE 3
  33. #define TC_AMPM 4
  34. #define TC_ARROW 5
  35. //
  36. // Enable or disable a time control
  37. //
  38. VOID
  39. EnableTimeControl(
  40. HWND hDlg,
  41. INT id,
  42. BOOL enabled
  43. );
  44. //
  45. // Setting the current value of a time control
  46. //
  47. VOID
  48. InitTimeControl(
  49. HWND hDlg,
  50. INT id,
  51. PFAX_TIME pTimeVal
  52. );
  53. //
  54. // Retrieve the current value of a time control
  55. //
  56. VOID
  57. GetTimeControlValue(
  58. HWND hDlg,
  59. INT id,
  60. PFAX_TIME pTimeVal
  61. );
  62. //
  63. // Handle dialog messages intended for a time control
  64. //
  65. BOOL
  66. HandleTimeControl(
  67. HWND hDlg,
  68. UINT message,
  69. WPARAM wParam,
  70. LPARAM lParam,
  71. INT id,
  72. INT part
  73. );
  74. #endif // !_TIMECTRL_H_