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.

122 lines
3.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corporation, 1991 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. dlgdval.h
  7. default values dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _DLGDVAL_H
  11. #define _DLGDVAL_H
  12. #ifndef _SCOPE_H
  13. #include "scope.h"
  14. #endif
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CDhcpDefValDlg dialog
  17. class CDhcpDefValDlg : public CBaseDialog
  18. {
  19. private:
  20. int m_combo_class_iSel;
  21. int m_combo_name_iSel;
  22. SPITFSNode m_spNode;
  23. // Construction
  24. public:
  25. CDhcpDefValDlg(ITFSNode * pServerNode,
  26. COptionList * polTypes,
  27. CWnd* pParent = NULL); // standard constructor
  28. ~ CDhcpDefValDlg () ;
  29. // Dialog Data
  30. //{{AFX_DATA(CDhcpDefValDlg)
  31. enum { IDD = IDD_DEFAULT_VALUE };
  32. CEdit m_edit_comment;
  33. CButton m_butn_edit_value;
  34. CStatic m_static_value_desc;
  35. CEdit m_edit_string;
  36. CEdit m_edit_num;
  37. CEdit m_edit_array;
  38. CComboBox m_combo_name;
  39. CComboBox m_combo_class;
  40. CButton m_butn_prop;
  41. CButton m_butn_new;
  42. CButton m_butn_delete;
  43. //}}AFX_DATA
  44. CWndIpAddress m_ipa_value ; // IP Address control
  45. // Implementation
  46. // Return TRUE if the lists were fiddled during execution
  47. BOOL QueryDirty () { return m_b_dirty ; }
  48. void GetCurrentVendor(CString & strVendor);
  49. // Context Help Support
  50. virtual DWORD * GetHelpMap() {
  51. return DhcpGetHelpMap(CDhcpDefValDlg::IDD);
  52. }
  53. protected:
  54. // The current list of types and values
  55. COptionList * m_pol_values ;
  56. // list of new options - only used to clear new options on cancel
  57. COptionList m_ol_values_new ;
  58. // The list of deleted type/values
  59. COptionList m_ol_values_defunct ;
  60. // Pointer to type being displayed
  61. CDhcpOption * m_p_edit_type ;
  62. // TRUE if lists have been fiddled.
  63. BOOL m_b_dirty ;
  64. // Check the state of the controls
  65. void HandleActivation ( BOOL bForce = FALSE ) ;
  66. // Fill the combo boxe(s)
  67. void Fill () ;
  68. // Given the listbox index, get a pointer to the option
  69. CDhcpOption * GetOptionTypeByIndex ( int iSel );
  70. // Handle edited data
  71. BOOL HandleValueEdit () ;
  72. LONG UpdateList ( CDhcpOption * pdhcType, BOOL bNew ) ;
  73. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  74. // Generated message map functions
  75. //{{AFX_MSG(CDhcpDefValDlg)
  76. afx_msg void OnClickedButnDelete();
  77. afx_msg void OnClickedButnNewOption();
  78. afx_msg void OnClickedButnOptionPro();
  79. afx_msg void OnSelendokComboOptionClass();
  80. afx_msg void OnSetfocusComboOptionClass();
  81. afx_msg void OnSetfocusComboOptionName();
  82. afx_msg void OnSelchangeComboOptionName();
  83. virtual void OnCancel();
  84. virtual void OnOK();
  85. afx_msg void OnClickedButnValue();
  86. afx_msg void OnClickedHelp();
  87. virtual BOOL OnInitDialog();
  88. //}}AFX_MSG
  89. DECLARE_MESSAGE_MAP()
  90. };
  91. #endif _DLGDVAL_H