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.

105 lines
2.8 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corporation, 1991 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. dlgdefop.h
  7. Default options dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _DLGDEFOP_H
  11. #define _DLGDEFOP_H
  12. //
  13. // This value should be based on spreadsheet information
  14. //
  15. #define DHCP_MAX_BUILTIN_OPTION_ID 76
  16. #define DHCP_MIN_BUILTIN_OPTION_ID 0
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CDhcpDefOptionDlg dialog
  19. class CDhcpDefOptionDlg : public CBaseDialog
  20. {
  21. // Construction
  22. public:
  23. CDhcpDefOptionDlg( COptionList * polValues,
  24. CDhcpOption * pdhcType = NULL, // Type to edit if "change" mode
  25. LPCTSTR pszVendor = NULL, // Vendor Name
  26. CWnd* pParent = NULL); // standard constructor
  27. ~ CDhcpDefOptionDlg () ;
  28. // Dialog Data
  29. //{{AFX_DATA(CDhcpDefOptionDlg)
  30. enum { IDD = IDD_DEFINE_PARAM };
  31. CStatic m_static_DataType;
  32. CStatic m_static_id;
  33. CButton m_check_array;
  34. CEdit m_edit_name;
  35. CEdit m_edit_id;
  36. CEdit m_edit_comment;
  37. CComboBox m_combo_data_type;
  38. //}}AFX_DATA
  39. // Implementation
  40. CDhcpOption * RetrieveParamType () ;
  41. protected:
  42. // The applicable scope
  43. CDhcpScope * m_pob_scope ;
  44. // The current list of types and values
  45. COptionList * m_pol_types ;
  46. // The new or copy-constructed option type.
  47. CDhcpOption * m_p_type ;
  48. // The object on which it was based or NULL (if "create" mode).
  49. CDhcpOption * m_p_type_base ;
  50. // Vendor name for this option
  51. CString m_strVendor;
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. // Set the control data values based upon the type
  54. void Set () ;
  55. DHCP_OPTION_DATA_TYPE QueryType () const ;
  56. // Update the displayed type based upon the current values of
  57. // the controls. Does nothing if the controls have not changed.
  58. LONG UpdateType () ;
  59. // Drain the controls to create a new type object. Set focus onto
  60. // it when operation completes.
  61. LONG AddType () ;
  62. // Context Help Support
  63. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CDhcpDefOptionDlg::IDD); }
  64. // Generated message map functions
  65. //{{AFX_MSG(CDhcpDefOptionDlg)
  66. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  67. afx_msg void OnDestroy();
  68. virtual BOOL OnInitDialog();
  69. afx_msg void OnKillFocus(CWnd* pNewWnd);
  70. virtual void OnOK();
  71. afx_msg void OnClickedRadioTypeDecNum();
  72. afx_msg void OnClickedRadioTypeHexNum();
  73. afx_msg void OnClickedRadioTypeIp();
  74. afx_msg void OnClickedRadioTypeString();
  75. afx_msg void OnClose();
  76. afx_msg void OnSelchangeComboDataType();
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. };
  80. #endif _DLGDEFOP_H