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.

121 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. dnsnamed.h
  5. Abstract:
  6. DNS name resolution dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef _DNSNAMED_H
  14. #define _DNSNAMED_H
  15. class COMDLL CDnsNameDlg : public CDialog
  16. {
  17. /*++
  18. Class Description:
  19. DNS Name resolution dialog. Enter a DNS name, and this will be
  20. resolved to an IP address. Optionally set the value in associated
  21. ip control.
  22. Public Interface:
  23. CDnsNameDlg : Construct the dialog
  24. QueryIPValue : Find out the resolved IP address (only set when OK
  25. is pressed).
  26. --*/
  27. //
  28. // Construction
  29. //
  30. public:
  31. //
  32. // Construct with associated IP address control
  33. //
  34. CDnsNameDlg(
  35. IN CIPAddressCtl * pIpControl = NULL,
  36. IN CWnd * pParent = NULL
  37. );
  38. //
  39. // Construct with IP value
  40. //
  41. CDnsNameDlg(
  42. IN DWORD dwIPValue,
  43. IN CWnd * pParent = NULL
  44. );
  45. DWORD QueryIPValue() const;
  46. //
  47. // Dialog Data
  48. //
  49. protected:
  50. //{{AFX_DATA(CDnsNameDlg)
  51. enum { IDD = IDD_DNS };
  52. CEdit m_edit_DNSName;
  53. CButton m_button_OK;
  54. //}}AFX_DATA
  55. //
  56. // Overrides
  57. //
  58. protected:
  59. //{{AFX_VIRTUAL(CDnsNameDlg)
  60. protected:
  61. virtual void DoDataExchange(CDataExchange * pDX);
  62. //}}AFX_VIRTUAL
  63. //
  64. // Implementation
  65. //
  66. protected:
  67. //{{AFX_MSG(CDnsNameDlg)
  68. virtual void OnOK();
  69. virtual BOOL OnInitDialog();
  70. afx_msg void OnChangeEditDnsName();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. DWORD FillIpControlFromName();
  74. DWORD FillNameFromIpValue();
  75. private:
  76. CIPAddressCtl * m_pIpControl;
  77. DWORD m_dwIPValue;
  78. };
  79. //
  80. // Inline Expansion
  81. //
  82. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  83. inline DWORD CDnsNameDlg::QueryIPValue() const
  84. {
  85. return m_dwIPValue;
  86. }
  87. #endif // _DNSNAMED_H