Partager via


CIPAddressCtrl::CreateEx

Call this function to create a control (a child window) and associate it with the CIPAddressCtrl object.

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

Parameters

  • dwExStyle
    Specifies the extended style of the control being created. For a list of extended Windows styles, see the dwExStyle parameter for CreateWindowEx in the Windows SDK.

  • dwStyle
    The IP Address control's style. Apply a combination of window styles. You must include the WS_CHILD style because the control must be a child window. See CreateWindow in theWindows SDK for a list of windows styles.

  • rect
    A reference to a RECT structure describing the size and position of the window to be created, in client coordinates of pParentWnd.

  • pParentWnd
    A pointer to the window that is the control's parent.

  • nID
    The control's child-window ID.

Return Value

Nonzero if successful; otherwise 0.

Remarks

Use CreateEx instead of Create to apply extended Windows styles, specified by the Windows extended style preface WS_EX_.

Requirements

Header: afxcmn.h

See Also

Reference

CIPAddressCtrl Class

Hierarchy Chart

CIPAddressCtrl::CIPAddressCtrl