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.

79 lines
2.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corporation, 1991 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. dhcpipar.h
  7. IP array editor
  8. FILE HISTORY:
  9. */
  10. #ifndef _DLGIPARR_H
  11. #define _DLGIPARR_H
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDhcpIpArrayDlg dialog
  14. class CDhcpIpArrayDlg : public CBaseDialog
  15. {
  16. // Construction
  17. public:
  18. CDhcpIpArrayDlg( CDhcpOption * pdhcType, // The type being edited
  19. DHCP_OPTION_SCOPE_TYPE dhcScopeType,
  20. CWnd* pParent = NULL); // standard constructor
  21. // Dialog Data
  22. //{{AFX_DATA(CDhcpIpArrayDlg)
  23. enum { IDD = IDD_IP_ARRAY_EDIT };
  24. CButton m_butn_resolve;
  25. CStatic m_static_option_name;
  26. CStatic m_static_application;
  27. CListBox m_list_ip_addrs;
  28. CEdit m_edit_server;
  29. CButton m_butn_add;
  30. CButton m_butn_delete;
  31. CButton m_button_Up;
  32. CButton m_button_Down;
  33. //}}AFX_DATA
  34. CWndIpAddress m_ipa_new ;
  35. // Implementation
  36. CDhcpOption * m_p_type ;
  37. CDWordArray m_dw_array ;
  38. DHCP_OPTION_SCOPE_TYPE m_option_type ;
  39. // Handle changes in the dialog
  40. void HandleActivation () ;
  41. // Fill the list box
  42. void Fill ( INT cFocus = -1, BOOL bToggleRedraw = TRUE ) ;
  43. // Context Help Support
  44. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CDhcpIpArrayDlg::IDD); }
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. // Generated message map functions
  48. //{{AFX_MSG(CDhcpIpArrayDlg)
  49. virtual BOOL OnInitDialog();
  50. virtual void OnOK();
  51. virtual void OnCancel();
  52. afx_msg void OnClickedButnAdd();
  53. afx_msg void OnClickedButnDelete();
  54. afx_msg void OnClickedButnDown();
  55. afx_msg void OnClickedButnUp();
  56. afx_msg void OnClickedHelp();
  57. afx_msg void OnSelchangeListIpAddrs();
  58. afx_msg void OnChangeEditServerName();
  59. afx_msg void OnClickedButnResolve();
  60. afx_msg void OnSetFocusEditIpAddr();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. #endif _DLGIPARR_H