SECToolBarCmdPage Class

class SECToolBarCmdPage: public CPropertyPage

The SECToolBarCmdPage class presents all the available toolbar buttons to the user. These buttons can be dragged onto an existing toolbar or used to create a new toolbar. SECToolBarCmdPage should only be used in an SECToolBarSheet (cannot be used directly in a CPropertySheet). The developer should use the DefineBtnGroup function to define at least one button group. Also, SECToolBarCmdPage needs to be used in conjunction with a toolbar manager.

Defined in: tbarpage.h

Example

The following example might make this clearer:

SECToolBarSheet sheet;
SECToolBarCmdPage page;
 static UINT BASED_CODE fileButtons[4] =
 {
 ID_FILE_NEW,
 ID_FILE_OPEN,
 ID_FILE_SAVE,
 ID_FILE_SAVE_ALL
 };
 static UINT BASED_CODE editButtons[3] =
 {
 ID_EDIT_COPY,
 ID_EDIT_CUT,
 ID_EDIT_PASTE
 };
 page.SetManager(m_pManager);
 page.DefineBtnGroup(_T("File"), 4, &fileButtons);
 page.DefineBtnGroup(_T("Edit"), 3, &editButtons);
 sheet.AddPage(&page);
sheet.DoModal();
See the sample TOOLBAR in the \SAMPLES\TOOLKIT\STANDARD\DOCKING\TOOLBAR directory for a demonstration of this class.

See Also

SECToolBarSheet  SECToolBarManager  SECCustomToolbar  SECToolBarsDlg

Class Members

SECToolBarCmdPage()

Constructs an SECToolBarCmdPage object.

SECToolBarCmdPage(UINT nIDTemplate, UINT nIDCaption = 0)

Constructs an SECToolBarCmdPage object.

SECToolBarCmdPage(LPCTSTR lpszTemplate, UINT nIDCaption = 0)

Constructs an SECToolBarCmdPage object.

void  SetManager(SECToolBarManager* pManager)

Defines the toolbar manager.

void  DefineBtnGroup(LPCTSTR lpszTitle, int nBtnCount, UINT* lpBtnIDs)

Defines a button group, consisting of a title and an array of button IDs