BOOL Create( CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP, UINT nID = AFX_IDW_TOOLBAR );
Return Value
Nonzero if successful; otherwise 0.
Parameters
pParentWnd
Pointer to the window that is the toolbar’s parent.
dwStyle
The toolbar style. Additional toolbar styles supported are:
nID
The toolbar’s child-window ID.
Remarks
This member function creates a Windows toolbar (a child window) and associates it with the CToolBar object. It also sets the toolbar height to a default value.
CToolBar Overview | Class Members | Hierarchy Chart
See Also CToolBar::CToolBar, CToolBar::LoadBitmap, CToolBar::SetButtons, CToolBar::LoadToolBar, CControlBar::CalcDynamicLayout, CControlBar::CalcFixedLayout