Print Page | Close Window

How to show Ribbon bar Context tabs when using mfc

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23381
Printed Date: 04 October 2024 at 7:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to show Ribbon bar Context tabs when using mfc
Posted By: scottp
Subject: How to show Ribbon bar Context tabs when using mfc
Date Posted: 06 July 2017 at 7:56am
Hi,

I am building a ribbon using the mfcribbon-ms resource to be used with a MDI. The ribbon has a context category with one category tab.

I can't seem to find any way to easily activate the context category from a CView activation. There are no samples that show the context categories from created from a mfc ribbon resource.

Note that the mfc ribbon resource lets you specify an ID for the context, but not for the categories and the XTP API CXTPRibbonControlTab::FindTab requires an ID that can't be specified. the CMFCRibbon class has a ShowContextCategories

Any help appreciated.

Scott.




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