Compartir a través de


CSpinButtonCtrl::CreateEx

Creates a control (a child window) and associates it with the CSpinButtonCtrl 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
    Specifies the spin button control's style. Apply any combination of spin button control styles to the control. These styles are described in Up-Down Control Styles in the Windows SDK.

  • 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

Concepts

CSpinButtonCtrl Class

CSpinButtonCtrl Members

Hierarchy Chart

CSpinButtonCtrl::CSpinButtonCtrl