![]() |
RepositionBars in ActiveX |
Post Reply
|
| Author | |
kram617
Newbie
Joined: 24 February 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: RepositionBars in ActiveXPosted: 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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kram617
Newbie
Joined: 24 February 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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);
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |