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.

86 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. lmoddlg.h
  5. Abstract:
  6. Licensing mode dialog.
  7. Author:
  8. Don Ryan (donryan) 28-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. Jeff Parham (jeffparh) 15-Dec-1995
  13. Ported to CCF API to add/remove licenses.
  14. --*/
  15. #ifndef _LMODDLG_H_
  16. #define _LMODDLG_H_
  17. class CLicensingModeDialog : public CDialog
  18. {
  19. private:
  20. CService* m_pService;
  21. CString m_strServiceName;
  22. BOOL m_bAreCtrlsInitialized;
  23. public:
  24. DWORD m_fUpdateHint;
  25. public:
  26. CLicensingModeDialog(CWnd* pParent = NULL);
  27. void InitDialog(CService* pService);
  28. void InitCtrls();
  29. void UpdatePerServerLicenses();
  30. //{{AFX_DATA(CLicensingModeDialog)
  31. enum { IDD = IDD_CHOOSE_MODE };
  32. CButton m_okBtn;
  33. CEdit m_licEdit;
  34. CSpinButtonCtrl m_spinCtrl;
  35. long m_nLicenses;
  36. CString m_strPerSeatStatic;
  37. CString m_strSupportsStatic;
  38. CButton m_perSeatBtn;
  39. CButton m_perServerBtn;
  40. //}}AFX_DATA
  41. CButton m_addPerServerBtn;
  42. CButton m_removePerServerBtn;
  43. //{{AFX_VIRTUAL(CLicensingModeDialog)
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX);
  46. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  47. //}}AFX_VIRTUAL
  48. protected:
  49. //{{AFX_MSG(CLicensingModeDialog)
  50. virtual BOOL OnInitDialog();
  51. afx_msg void OnModePerSeat();
  52. afx_msg void OnModePerServer();
  53. virtual void OnOK();
  54. virtual void OnCancel();
  55. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnUpdateQuantity();
  57. afx_msg void OnHelp();
  58. //}}AFX_MSG
  59. afx_msg void OnAddPerServer();
  60. afx_msg void OnRemovePerServer();
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. #endif // _LMODDLG_H_