Print Page | Close Window

CXTPToolBar+CDialogBar problems

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=6327
Printed Date: 03 March 2025 at 11:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar+CDialogBar problems
Posted By: Irina
Subject: CXTPToolBar+CDialogBar problems
Date Posted: 06 February 2007 at 2:32am
So... I need create and set place of CDialogBar near ToolBar. (I use XTreme
ToolKitPro) For the standard CToolBar (MFC)
I havn't any problem - CRebar m_wndReBar.AddBar(&m_wndToolBar);
But for XTreme it's wrong...
CXTPToolBar* pStandardBar = (CXTPToolBar*)pCommandBars->Add(_T("Standard"), xtpBarTop);
and
m_wndReBar.AddBar(pStandardBar);
This bar does not set on the CRebar.
So.. I try another way for create:
UINT nCommands[] = {ID_CMD0, ID_CMD1, ID_CMD2, ID_CMD3};
CXTPToolBar m_ToolBar.CreateToolBar(WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS,this);
//m_ToolBar.LoadToolBar(IDR_MAINFRAME);

XTPImageManager()->SetIcons(IDR_MAINFRAME, nCommands, 3, CSize(72, 72) );
XTPImageManager()->RefreshAll();
m_ToolBar.GetControls()->Add(xtpControlButton, nCommands[0]);
//SetButtons(nCommands, 3);
So its way better but button does not appear..
When I try to catch ON_XTP_CREATECONTROL and set like control dialog(child, no border) - in that case we have fail-dawn on create toolbar.

And quastions: How to impelents those functionality?



Replies:
Posted By: Oleg
Date Posted: 06 February 2007 at 10:12am
Hi,
Check Samples\UserInterface\GUI_Explorer sample - it has rebar.


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


Posted By: Irina
Date Posted: 07 February 2007 at 2:16am
in this sample two toolbars are created. one placed to the right of other. pAddress created as CXTPToolBar, CXTPControlComboBox layed over it.But i have to arrange not the single control, but CDialogBar. CXTPReBar is not used in this project.





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