class CIPAddressDlg : public CDialog
{
// Construction
public:
CIPAddressDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CIPAddressDlg)
enum { IDD = IDD_IPADDRESS_DIALOG };
CIPAddressCtrl m_ctrlIPAddress;
//}}AFX_DATA
..
};
void CIPAddressDlg::OnConnect()
{
BYTE nField0, nFiled1, nField2, nField3;
m_ctrlIPAddress.GetAddress(nField0, nFiled1, nField2, nField3);
..
}