Sets the address values for all four fields in the IP Address Control.
void SetAddress( BYTE nField0, BYTE nField1, BYTE nField2, BYTE nField3 ); void SetAddress( DWORD dwAddress );
The field 0 value from a packed IP address.
The field 1 value from a packed IP address.
The field 2 value from a packed IP address.
The field 3 value from a packed IP address.
A DWORD value that contains the new IP address. See Remarks for a table that shows how the DWORD value is filled.
This member function implements the behavior of the Win32 message IPM_SETADDRESS, as described in the Platform SDK. In the first prototype above, the numbers in fields 0 through 3 of the control, read left to right respectively, populate the four parameters. In the second prototype above, dwAddress is populated as follows.
|Field||Bits containing the field value|
24 through 31
16 through 23
8 through 15
0 through 7