Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon inside a dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon inside a dialog

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon inside a dialog
    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++)
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post 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));

...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.