CNetAddressCtrl::SetAllowType
Sets the type of network address that the current network address control can support.
HRESULT SetAllowType(
DWORD dwAddrMask
);
Parameters
Parameter |
Description |
---|---|
[in] dwAddrMask |
A bitwise combination (OR) of flags that specifies the types of addresses the network address control can support. For more information, see NET_STRING. |
Return Value
S_OK if this method is successful; otherwise, a COM error code.
Requirements
Header: afxcmn.h
This method is supported in Windows Vista and later.
Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.
Remarks
Use the CNetAddressCtrl::SetAllowType method to specify the types of addresses that the current network address control can support. Use the CNetAddressCtrl::GetAddress method to validate and parse the network address that the user enters. Use the CNetAddressCtrl::DisplayErrorTip method to display an error message infotip if the CNetAddressCtrl::GetAddress method is unsuccessful.
This message invokes the NetAddr_SetAllowType macro, which is described in the Windows SDK. That macro sends the NCM_SETALLOWTYPE message.
See Also
Reference
CNetAddressCtrl::DisplayErrorTip