翻譯|使用教程|編輯:李爽夏|2018-12-04 09:24:37.000|閱讀 318 次
概述:BCGControlBar Library框架支持Outlook樣式的快捷方式控制欄。 用戶可以使用這些欄來增強應用程序中的工作區管理。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
BCGControlBar Library框架支持Outlook樣式的快捷方式控制欄。 您可以使用這些欄來增強應用程序中的工作區管理。
快捷方式欄具有以下元素:
“outlook”控制條的功能由CBCGPOutlookBar類提供。 要使用此課程,請執行以下步驟:
CBCGPOutlookWnd::EnableAnimation (); const int nInitialWidth = 150; const CString strCaption = _T("Shortcuts"); m_wndShortcutsBar.SetMode2003(); if (!m_wndShortcutsBar.Create (strCaption, this, CRect (0, 0, nInitialWidth, nInitialWidth), ID_VIEW_OUTLOOKBAR, WS_CHILD | WS_VISIBLE | CBRS_LEFT)) { TRACE0("Failed to create outlook bar\n"); return FALSE; // fail to create } CBCGPOutlookWnd* pShortcutsBarContainer = DYNAMIC_DOWNCAST (CBCGPOutlookWnd, m_wndShortcutsBar.GetUnderlinedWindow ()); if (pShortcutsBarContainer == NULL) { TRACE0("Cannot get outlook bar container\n"); return FALSE; } pShortcutsBarContainer->SetImageList(IDB_PAGES, 24); pShortcutsBarContainer->SetToolbarImageList(IDB_PAGES_SMALL, 16); // Create first page: m_wndShortcutsPane1.Create (&m_wndShortcutsBar, dwDefaultToolbarStyle, ID_SHORTCUTS_PANE_1); m_wndShortcutsPane1.SetOwner (this); m_wndShortcutsPane1.EnableTextLabels (); m_wndShortcutsPane1.EnableDocking (CBRS_ALIGN_ANY); m_wndShortcutsPane1.AddButton (theApp.LoadIcon(IDI_SHORTCUT1), _T("Shortcut 1"), ID_SHORTCUT_1); m_wndShortcutsPane1.AddButton (theApp.LoadIcon(IDI_SHORTCUT2), _T("Shortcut 2"), ID_SHORTCUT_2); pShortcutsBarContainer->AddTab (&m_wndShortcutsPane1, _T("Page 1"), 0, FALSE); m_wndShortcutsPane1.EnableDocking (CBRS_ALIGN_ANY); // Create second page: m_wndShortcutsPane2.Create (&m_wndShortcutsBar, dwDefaultToolbarStyle, ID_SHORTCUTS_PANE_2); m_wndShortcutsPane2.SetOwner (this); m_wndShortcutsPane2.EnableTextLabels (); m_wndShortcutsPane2.EnableDocking (CBRS_ALIGN_ANY); m_wndShortcutsPane2.AddButton (theApp.LoadIcon(IDI_SHORTCUT3), _T("Shortcut 3"), ID_SHORTCUT_3); m_wndShortcutsPane2.AddButton (theApp.LoadIcon(IDI_SHORTCUT4), _T("Shortcut 4"), ID_SHORTCUT_4); pShortcutsBarContainer->AddTab (&m_wndShortcutsPane2, _T("Page 2"), 1, FALSE);
購買BCGSoft正版授權,請點擊“”喲!
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn