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.

82 lines
1.5 KiB

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