Print Page | Close Window

Ribbon inside a dialog

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=22356
Printed Date: 19 November 2024 at 9:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon inside a dialog
Posted By: cpede
Subject: Ribbon inside a dialog
Date Posted: 11 July 2014 at 10:27am
Can I create a ribbon bar inside of a dialog?

Or can I create something that looks the same and uses the Ribbon themes?

-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Alex H.
Date Posted: 24 July 2014 at 10:47am
Hi!

Yes it works Smile
I have a dialog derived from CXTPDialogBase<CXTResizeDialog>

An in OnInitDialog i create the ribbon:


 CXTPCommandBars* pCommandBars = GetCommandBars();  ASSERT(pCommandBars);

 ...  
 CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*) pCommandBars->Add(_T(""), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));

...



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