SECDialogBar::Create

Loads the dialog-box resource template specified by lpszTemplateName or nIDTemplate, creates the dialog-bar window, sets its style, and associates it with the SECDialogBar object.
Note that SECDialogBar::Create takes five parameters, whereas CDialogBar::Create takes only four parameters. Also, the dialog-bar window is visible initially only if the WS_VISIBLE style is specified in the call to Create( ). If you choose to make the dialog-bar window invisible initially, you avoid flashing at startup and can optionally convert it to an MDI child.

Possible values of the dwExStyle parameter are:
CBRS_EX_STDCONTEXTMENU – Standard context menu items.
CBRS_EX_STRETCH_ON_SIZE – Control bar is stretched on resize.
CBRS_EX_UNIDIRECTIONAL – Bar can be sized in one direction at a time (NOTE: not necessary to include this style; meant for toolbars).
CBRS_EX_DRAWBORDERS – Draw a border around the bar (NOTE: not necessary to include this style; meant for internal use).
CBRS_EX_BORDERSPACE – Leave a border space for ease of dragging.
CBRS_EX_ALLOW_MDI_FLOAT – Control bar can be re-parented by an MDI child window.

Defined in: sbardlg.cpp

Syntax

BOOL SECDialogBar::Create(CWnd* pParentWnd, LPCTSTR lpszTemplateName,UINT nStyle, DWORD dwExStyle, UINT nID)

BOOL SECDialogBar::Create(CWnd* pParentWnd, UINT nIDTemplate,UINT nStyle,DWORD dwExStyle, UINT nID)

Return Value

BOOL Nonzero if successful; otherwise 0.

Parameters

pParentWnd

Parent of dialog bar.

lpszTemplateName

Pointer to the name of the dialog-box resource template.

nIDTemplate

ID of the dialog-box resource template.

nStyle

Window style bits and standard control bar style bits. These are the same as the styles defined by the CDialogBar base class.

dwExStyle

Extended control bar style bits defined by the extended control bar architecture. Each flag can be OR’ed together.

nID

The control ID of dialog bar.