![]() |
CFormView and CXTPToolBar |
Post Reply ![]() |
Author | |
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() Posted: 25 December 2003 at 12:48am |
Try this: CXTPControl* pControl = m_wndToolBar.GetControls()->Add(xtpControlSplitButtonPopu p, ID_MY_TOOLBAR_ADD, _T(""), 0); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
JamesC ![]() Newbie ![]() Joined: 03 December 2003 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
I have a CFormView with a Toolbar on it. I create it fine, but one of the buttons is supposed to be a ControlSplitButtonPopup. My Code looks like this:
VERIFY(m_wndToolBar.CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_T OOLTIPS, this, AFX_IDW_TOOLBAR)); //|CBRS_GRIPPERVERIFY(m_wndToolBar.LoadToolBar(IDR_MY_TOOLBAR)); m_wndToolBar.SetFlags(xtpFlagAlignAny|xtpFlagFloating|xtpFla gStretched); //(xtpFlagStretched); //More Options for AddCXTPControl* pControl = m_wndToolBar.GetControls()->FindControl(xtpControlButton, ID_MY_TOOLBAR_ADD, TRUE, FALSE); m_wndToolBar.GetControls()->SetControlType(pControl, xtpControlSplitButtonPopup); I have a Menu with the same ID has the button 'ID_MY_TOOLBAR_ADD' but when I click on the arrow (which DOES show up next to the button that I want the arrow to be with), there is no menu. Am I missing a step. Normally it seems that this is all done in OnCreateControl but I dont get that message since I am only a CFormView. Any Ideas? Thanks |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |