Share via


CIPAddressCtrl::SetFieldFocus

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

void SetFieldFocus( 
   WORD nField  
);

Parameters

  • nField
    Zero-based field index to which the focus should be set. If this value is greater than the number of fields, focus is set to the first blank field. If all fields are non-blank, focus is set to the first field.

Remarks

This member function implements the behavior of the Win32 message IPM_SETFOCUS, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CIPAddressCtrl Class

Hierarchy Chart

CIPAddressCtrl::SetFieldRange