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.

99 lines
2.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1996.
  5. //
  6. // File: selmonth.hxx
  7. //
  8. // Contents: Definition of class to manage simple month-selection
  9. // dialog box.
  10. //
  11. // Classes: CSelectMonth
  12. //
  13. // History: 5-05-1997 DavidMun Created
  14. //
  15. //---------------------------------------------------------------------------
  16. #ifndef __SELMONTH_HXX_
  17. #define __SELMONTH_HXX_
  18. //+--------------------------------------------------------------------------
  19. //
  20. // Class: CSelectMonth
  21. //
  22. // Purpose: Drive a month-selection dialog used by the monthly wizard
  23. // page.
  24. //
  25. // History: 5-05-1997 DavidMun Created
  26. //
  27. //---------------------------------------------------------------------------
  28. class CSelectMonth: public CDlg
  29. {
  30. public:
  31. CSelectMonth();
  32. USHORT
  33. GetSelectedMonths();
  34. private:
  35. virtual INT_PTR
  36. RealDlgProc(
  37. UINT uMsg,
  38. WPARAM wParam,
  39. LPARAM lParam);
  40. VOID
  41. _OnOK();
  42. VOID
  43. _OnInit();
  44. USHORT _flMonths;
  45. };
  46. //+--------------------------------------------------------------------------
  47. //
  48. // Member: CSelectMonth::CSelectMonth
  49. //
  50. // Synopsis: ctor
  51. //
  52. // History: 5-05-1997 DavidMun Created
  53. //
  54. //---------------------------------------------------------------------------
  55. inline
  56. CSelectMonth::CSelectMonth()
  57. {
  58. _flMonths = 0;
  59. }
  60. //+--------------------------------------------------------------------------
  61. //
  62. // Member: CSelectMonth::GetSelectedMonths
  63. //
  64. // Synopsis: Return bitmask containing TASK_JANUARY..TASK_DECEMBER flags
  65. // corresponding to the checkboxes the user checked.
  66. //
  67. // History: 5-05-1997 DavidMun Created
  68. //
  69. //---------------------------------------------------------------------------
  70. inline USHORT
  71. CSelectMonth::GetSelectedMonths()
  72. {
  73. return _flMonths;
  74. }
  75. #endif // __SELMONTH_HXX_