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.

68 lines
1.5 KiB

  1. // EdtBindD.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CEditBindingDlg dialog
  5. class CEditBindingDlg : public CDialog
  6. {
  7. // Construction
  8. public:
  9. CEditBindingDlg(WCHAR* pszw, CWnd* pParent = NULL); // standard constructor
  10. virtual BOOL OnInitDialog();
  11. WCHAR* m_pszwMachineName;
  12. // other data from parent
  13. CBindingsDlg* m_pBindingsDlg;
  14. CString m_szBinding;
  15. // Dialog Data
  16. //{{AFX_DATA(CEditBindingDlg)
  17. enum { IDD = IDD_EDT_BINDING };
  18. CComboBox m_ccombobox_port;
  19. int m_int_ip_option;
  20. int m_int_port_option;
  21. CString m_cstring_port;
  22. //}}AFX_DATA
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CEditBindingDlg)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. // Generated message map functions
  32. //{{AFX_MSG(CEditBindingDlg)
  33. virtual void OnOK();
  34. afx_msg void OnRdIp();
  35. afx_msg void OnRdPort();
  36. afx_msg void OnAnyIp();
  37. afx_msg void OnAnyPort();
  38. afx_msg void OnDropdownPortDrop();
  39. afx_msg void OnBtnSelectIpaddress();
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. // enable the itesm as appropriate
  43. void EnableItems();
  44. BOOL FIsBindingSafeToUse( CString szBinding );
  45. // utilities to access the IP control
  46. BOOL FSetIPAddress( CString& szAddress );
  47. CString GetIPAddress();
  48. void ClearIPAddress();
  49. BOOL m_fPopulatedPortDropdown;
  50. #define OPTION_ANY_UNASSIGNED 0
  51. #define OPTION_SPECIFIED 1
  52. };