Print Page | Close Window

RepositionBars in ActiveX

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


Topic: RepositionBars in ActiveX
Posted By: kram617
Subject: RepositionBars in ActiveX
Date Posted: 16 March 2007 at 4:32pm

I am creating a CXTPToolBar on a CXTPDialog within an ActiveX control.  My application always crashes when RepositionBars is called in my OCX.

The parent application does not use Codejock.  Has anybody had similiar problems with using toolbars in ActiveX controls?



Replies:
Posted By: Oleg
Date Posted: 19 March 2007 at 2:01am
Hi,
May be it needs some resources. Did you added resources to your dll ?
 
What line fails?


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


Posted By: kram617
Date Posted: 19 March 2007 at 5:19pm
I was able to fix the problem by adding this line before creating the toolbar (just like in the DialogSample application).
 
CXTPPaintManager::SetTheme(xtpThemeOfficeXP);



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