CIPAddress Class |
Description
The CIPAddress class adds support for the IP Address control. An Internet Protocol (IP) address control allows the user to enter an IP address in an easily understood format. This control also allows the application to obtain the address in numeric form rather than in text form.
Refer to the documentation that ships with the Microsoft Windows Software Development Kit for more information on the use of IP Address controls.
CIPAddress Members
CIPAddress | CIPAddress();Constructs the IP address control. |
void ClearAddress();Clears the contents of the IP address control.
int GetAddress(BYTE& nField0, BYTE& nField1, BYTE& nField2, BYTE& nField3);
int GetAddress(DWORD* dwAddress);Gets the address values for all four fields in the IP address control.
BOOL IsBlank() const;Determines if all fields in the IP address control are blank.
void SetAddress(BYTE nField0, BYTE nField1, BYTE nField2, BYTE nField3);
void SetAddress(DWORD dwAddress);Sets the address values for all four fields in the IP address control.
void SetFieldFocus(WORD nField);Sets the keyboard focus to the specified field in the IP address control. All of the text in that field will be selected.
void SetFieldRange(int nField, BYTE nLower, BYTE nUpper);Sets the valid range for the specified field in the IP address control.
virtual void PreRegisterClass(WNDCLASS &wc);Set the window class parameters before the window is created.
Base class Members
For base class members, refer to the members of CWnd.
Remarks
An IP address control is not an edit control and it will not respond to EM_ messages. It will, however, send the owner window the following edit control notifications through the WM_COMMAND message. Note that the IP address control will also send private IPN_ notifications through the WM_NOTIFY message.
Summary Information
Header file | controls.h |
Win32/64 support | Yes |
WinCE support | Yes |
Library required | Comctl32.lib |