Hi,
While creating "xtpControlSplitButtonPopup" type control in ribbon as in the following code. I have been able to add menu-item into it's popup. But Now I need to have separator in between menuitems.
I am not getting how to do this using this code, without using the WM_XTP_INITCOMMANDSPOPUP message approach.
Is it possible in CODEJOCK??
Thanks
CXTPControlPopup* pControlButton1 = (CXTPControlPopup*)pGroupClipboard->Add(xtpControlButtonPopup, ID_RIBBON_BUTTON1); if(pControlPasteQueue) { pControlButton1->SetCaption("Button1"); pControlButton1->SetFlags(xtpFlagManualUpdate);
// menu-item 1 CXTPControlButton* pControlMenuItem1 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM1); pControlMenuItem1->SetCaption("menu-item1");
// menu-item2 CXTPControlButton* pControlMenuItem2 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM2); pControlMenuItem2->SetCaption("menu-item2");
// I need to add separator here
// menu-item3 CXTPControlButton* pControlMenuItem3 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM3); pControlComboneRegions->SetCaption("menu-item3");
// menu-item 4 CXTPControlButton* pControlMenuItem4 = (CXTPControlButton*)pControlButton1->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_MENUITEM4); pControlMenuItem4->SetCaption("menu-item4"); }
|