Udostępnij za pośrednictwem


CIPAddressCtrl::Create

Creates an IP Address Control and attaches it to a CIPAddressCtrl object.

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

Parameters

  • 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 the IP Address Control's size and position. It can be either a CRect object or a RECT structure.

  • pParentWnd
    A pointer to the IP Address Control's parent window. It must not be NULL.

  • nID
    The IP Address Control's ID.

Return Value

Nonzero if initialization was successful; otherwise 0.

Remarks

You construct a CIPAddressCtrl object in two steps.

  1. Call the constructor, which creates the CIPAddressCtrl object.

  2. Call Create, which creates the IP Address Control.

If you want to use extended windows styles with your control, call CreateEx instead of Create.

Requirements

Header: afxcmn.h

See Also

Reference

CIPAddressCtrl Class

Hierarchy Chart

CIPAddressCtrl::CIPAddressCtrl

Other Resources

CIPAddressCtrl Members