Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Split menu button on toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Split menu button on toolbar

 Post Reply Post Reply
Author
Message
Jaws View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2005
Location: Italy
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jaws Quote  Post ReplyReply Direct Link To This Post Topic: Split menu button on toolbar
    Posted: 20 June 2005 at 10:12am

Hi,

I need to add a split button on my toolbar. When I press the drop arrow I need to display a popup menu. My toolbar is on a dialog application.

How can I do it?

Thank you

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 2:24pm

As example:

CXTPControlPopup* pControl = (CXTPControlPopup*)m_wndToolBar.GetControls()->SetControl Type(m_wndToolBar.GetControl(3), xtpControlSplitButtonPopup);

pControl->GetCommandBar()->LoadMenu(..)  

 

or

CXTPControlPopup* pControl = (CXTPControlPopup*)m_wndToolBar.GetControls()->Add(xtpCon trolSplitButtonPopup, 100);

pControl->GetCommandBar()->LoadMenu(..)  

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.