Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - RepositionBars in ActiveX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RepositionBars in ActiveX

 Post Reply Post Reply
Author
Message
kram617 View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote kram617 Quote  Post ReplyReply Direct Link To This Post Topic: RepositionBars in ActiveX
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kram617 View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote kram617 Quote  Post ReplyReply Direct Link To This Post 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);
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.047 seconds.