Print Page | Close Window

Separator in dynamic toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=509
Printed Date: 14 May 2024 at 11:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Separator in dynamic toolbar
Posted By: yoavo
Subject: Separator in dynamic toolbar
Date Posted: 10 March 2004 at 12:48am

Hi,

I have created a dynamic toolbar (not loaded from resources):

CXTPToolBar* pToolBar2 = pCommandBars->Add(_T("Yoav"), xtpBarTop);

pToolBar2->SetBarID(12000);

UINT* pArr = new UINT[3];

pArr[0] = 1001;

pArr[1] = 1002;

pArr[2] = 1003;

CBitmap* pBmp = new CBitmap;

pBmp->LoadBitmap(IDB_BITMAP1);

pToolBar2->SetButtons(pArr,3);

CXTPImageManager* pImageManager = pCommandBars->GetImageManager();

pImageManager->SetIcons(*pBmp,pArr,3,CSize(16,15),xtpImageNormal,TRUE);

I want to add a separator between item2 and item3.

How do I do that ?




Replies:
Posted By: SuperMario
Date Posted: 10 March 2004 at 6:14am
When you are adding the control to your command bar you change the "before" parameter to the index of the control to be inserted. 


Posted By: Oleg
Date Posted: 10 March 2004 at 1:32pm
pToolBar2->GetControl(2)->SetBeginGroup(TRUE);

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net