Delen via


CIPAddressCtrl Class

Provides the functionality of the Windows common IP Address control.

class CIPAddressCtrl : public CWnd

Members

Public Constructors

Name

Description

CIPAddressCtrl::CIPAddressCtrl

Constructs a CIPAddressCtrl object.

Public Methods

Name

Description

CIPAddressCtrl::ClearAddress

Clears the contents of the IP Address Control.

CIPAddressCtrl::Create

Creates an IP Address Control and attaches it to a CIPAddressCtrl object.

CIPAddressCtrl::CreateEx

Creates an IP Address control with the specified Windows extended styles and attaches it to a CIPAddressCtrl object.

CIPAddressCtrl::GetAddress

Retrieves the address values for all four fields in the IP Address Control.

CIPAddressCtrl::IsBlank

Determines if all fields in the IP Address Control are empty.

CIPAddressCtrl::SetAddress

Sets the address values for all four fields in the IP Address Control.

CIPAddressCtrl::SetFieldFocus

Sets the keyboard focus to the specified field in the IP Address Control.

CIPAddressCtrl::SetFieldRange

Sets the range in the specified field in the IP Address Control.

Remarks

An IP Address control, a control similar to an edit control, allows you to enter and manipulate a numerical address in Internet Protocol (IP) format.

This control (and therefore the CIPAddressCtrl class) is available only to programs running under Microsoft Internet Explorer 4.0 and later. They will also be available under future versions of Windows and Windows NT.

For more general information about the IP Address Control, see IP Address Controls in the Windows SDK.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CIPAddressCtrl

Requirements

Header: afxcmn.h

See Also

Reference

CWnd Class

Hierarchy Chart