Print Page | Close Window

Theme to apply for dynamic MFC Toolbar Buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
Printed Date: 04 June 2023 at 6:25am
Software Version: Web Wiz Forums 12.04 -

Topic: Theme to apply for dynamic MFC Toolbar Buttons
Posted By: PSCel
Subject: Theme to apply for dynamic MFC Toolbar Buttons
Date Posted: 10 March 2023 at 9:54am
Hi All,

We have a MFC Dialog for which we are loading the Custom theme (*.cjstyle) that we created using the Theme Builder tool of the XTP Toolkit Pro library using the XTPSkinManager()->LoadSkin("*.cjstyle").

Theme Loads correctly for all the Controls on the Dialog except for the "n" no. of ToolBar Buttons. These "n" MFC Toolbar Buttons are created Dynamically. When the theme is getting applied we see that the last ToolBar Button [(n-1)th] is the only Toolbar Button that is visible on the Dialog. Rest of them only appear with the Tooltip associated with each button  however the button is Hidden.

Is it possible to apply the XTPToolkit theme on the Dynamically created MFC ToolBar buttons? 

Any help is appreciated.

Print Page | Close Window

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