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.

59 lines
1.2 KiB

  1. // CnctDlg.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CConnectionDlg dialog
  5. enum
  6. {
  7. CONNECTION_NONE = 0,
  8. CONNECTION_DEFAULT,
  9. CONNECTION_IPADDRESS
  10. };
  11. class CConnectionDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CConnectionDlg(CWnd* pParent = NULL); // standard constructor
  16. // the IP address
  17. CString m_szIPAddress;
  18. // the calling key (needed for the select ip dialog)
  19. CW3Key* m_pKey;
  20. // Dialog Data
  21. //{{AFX_DATA(CConnectionDlg)
  22. enum { IDD = IDD_KEY_PROP };
  23. CButton m_cbutton_choose_ip;
  24. int m_int_connection_type;
  25. //}}AFX_DATA
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CConnectionDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. virtual BOOL OnInitDialog( );
  35. // Generated message map functions
  36. //{{AFX_MSG(CConnectionDlg)
  37. afx_msg void OnBtnKeyviewDefault();
  38. afx_msg void OnBtnKeyviewIpaddr();
  39. afx_msg void OnBtnKeyviewNone();
  40. afx_msg void OnBtnSelectIpaddress();
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. // the IP address
  44. CString m_szIPStorage;
  45. BOOL FSetIPAddress( CString& szAddress );
  46. CString GetIPAddress();
  47. void ClearIPAddress();
  48. };