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
1.5 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. dlicdlg.h
  5. Abstract:
  6. Delete license dialog implementation.
  7. Author:
  8. Don Ryan (donryan) 05-Mar-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _DLICDLG_H_
  14. #define _DLICDLG_H_
  15. class CDeleteLicenseDialog : public CDialog
  16. {
  17. private:
  18. CProduct* m_pProduct;
  19. int m_nTotalLicenses;
  20. BOOL m_bAreCtrlsInitialized;
  21. public:
  22. DWORD m_fUpdateHint;
  23. public:
  24. CDeleteLicenseDialog(CWnd* pParent = NULL);
  25. void InitDialog(CProduct* pProduct, int nTotalLicenses);
  26. void AbortDialogIfNecessary();
  27. void AbortDialog();
  28. void InitCtrls();
  29. BOOL IsQuantityValid();
  30. //{{AFX_DATA(CDeleteLicenseDialog)
  31. enum { IDD = IDD_DELETE_LICENSE };
  32. CEdit m_cmtEdit;
  33. CSpinButtonCtrl m_spinCtrl;
  34. CEdit m_licEdit;
  35. CButton m_okBtn;
  36. CButton m_cancelBtn;
  37. CString m_strComment;
  38. long m_nLicenses;
  39. long m_nLicensesMin;
  40. CString m_strProduct;
  41. //}}AFX_DATA
  42. //{{AFX_VIRTUAL(CDeleteLicenseDialog)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX);
  45. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  46. //}}AFX_VIRTUAL
  47. protected:
  48. //{{AFX_MSG(CDeleteLicenseDialog)
  49. virtual BOOL OnInitDialog();
  50. virtual void OnOK();
  51. afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnUpdateQuantity();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #endif // _DLICDLG_H_