SECEditCtrlWrapper_T::Create

template <class wnd_t, class vp_t>
BOOLSECEditCtrlWrapper_T<wnd_t, vp_t>::Create(LPCTSTRlpszClassName, LPCTSTRlpszWindowName, DWORDdwStyle, const RECT&rect, CWnd*pParentWnd, UINTnID, CCreateContext*pContext)

Creates the window and viewport.

Defined in: SECEditScrollBarWrapper_T.h

Return Value

Nonzero if successful; otherwise 0.

Parameters

lpszClassName

Points to a null-terminated character string that names the Windows class (a WNDCLASS structure). The class name can be any name registered with the global AfxRegisterWndClass function or any of the predefined control-class names. If NULL, uses the default CWnd attributes.

lpszWindowName

Points to a null-terminated character string that contains the window name.

dwStyle

Specifies the window style attributes. WS_POPUP cannot be used.

rect

The size and position of the window, in client coordinates of pParentWnd.

pParentWnd

The parent window.

nID

The ID of the child window.

pContext

The create context of the window.

Comments

You construct a child window in two steps. First, call the constructor, which constructs the CWnd object. Then call Create, which creates the Windows child window and attaches it to CWnd. Create initializes the window’s class name and window name and registers values for its style, parent, and ID.

See Also

SECEditCtrlWrapper_T

Class Template Arguments

wnd_t

A CWnd-derived class.

vp_t

A SECEditViewport-derived class.