Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Third party toolbar

Third party toolbar

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dreamz
    wrote on last edited by
    #1

    Hi Can we load a third party toolbar into our application. Eg: I have a view class derived from CHtmlView.How can i load the additional toolbars downloaded for the Internet explorer. Thanks:)

    N 1 Reply Last reply
    0
    • D Dreamz

      Hi Can we load a third party toolbar into our application. Eg: I have a view class derived from CHtmlView.How can i load the additional toolbars downloaded for the Internet explorer. Thanks:)

      N Offline
      N Offline
      nguyenvhn
      wrote on last edited by
      #2

      As my knowledge, you need 2 toolbars. One supplied by MFC framework, and the other supplied by yourself. If so, read bellow. If not, leave now. In CMainFrame, create a CToolBar member variable, for example, it may be CToolBar m_tbNew;. In CMainFrame::OnCreate, add the following code: m_tbNew.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(0,0,0,0), ID_NEW_TOOLBAR); m_tbNew.SetWindowText("Caption here"); m_tbNew.LoadToolBar(IDR_NEW_TOOLBAR_RESOURCE); m_tbNew.EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_tbNew); The second toolbar will show beside default toolbar. Good luck.

      D 1 Reply Last reply
      0
      • N nguyenvhn

        As my knowledge, you need 2 toolbars. One supplied by MFC framework, and the other supplied by yourself. If so, read bellow. If not, leave now. In CMainFrame, create a CToolBar member variable, for example, it may be CToolBar m_tbNew;. In CMainFrame::OnCreate, add the following code: m_tbNew.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(0,0,0,0), ID_NEW_TOOLBAR); m_tbNew.SetWindowText("Caption here"); m_tbNew.LoadToolBar(IDR_NEW_TOOLBAR_RESOURCE); m_tbNew.EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_tbNew); The second toolbar will show beside default toolbar. Good luck.

        D Offline
        D Offline
        Dreamz
        wrote on last edited by
        #3

        Thanks for your reply. And i wanted to know that can we load the Google toolbar or Yahoo Toolbar into our application. Thanks:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups