Partager via


CNetAddressCtrl::CreateEx

Creates a network address control with specified extended styles and attaches it to the current CNetAddressCtrl object.

virtual BOOL CreateEx(
        DWORD dwExStyle, 
        DWORD dwStyle, 
        const RECT& rect, 
        CWnd* pParentWnd, 
        UINT nID
);

Parameters

Parameter

Description

[in] dwExStyle

A bitwise combination (OR) of extended styles to be applied to the control. For more information, see the dwExStyle parameter of the CreateWindowEx function.

[in] dwStyle

A bitwise combination (OR) of styles to be applied to the control. For more information, see Edit Styles.

[in] rect

A reference to a RECT structure that contains the position and size of the control.

[in] pParentWnd

A non-null pointer to a CWnd object that is the parent window of the control.

[in] nID

The ID of the control.

Return Value

true if this method is successful; otherwise, false.

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.

See Also

Reference

CNetAddressCtrl Class

Hierarchy Chart

CNetAddressCtrl::CreateEx