Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Integrating into an existing application
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrating into an existing application

 Post Reply Post Reply
Author
Message
Tom View Drop Down
Newbie
Newbie
Avatar

Joined: 18 July 2003
Location: Denmark
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tom Quote  Post ReplyReply Direct Link To This Post Topic: Integrating into an existing application
    Posted: 18 July 2003 at 11:41am

Hi All,

I have spend a couple of days now trying to implement XTP command bars into an existing application (+400k lines), and have run into a number of problems.

1) Ho do I derive a toolbar from CXTPToolBar?

I cannot find a way to get around using the toolbar factory method:

CXTPToolBar* mybar = (CXTPToolBar*)GetCommandBars()->Add(...);

I need to be able to have toolbars derived from CXTPToolBar, and just do something like mybar.Create(..)

2) How do I get the min/max/close buttons to show up in the menu bar when my MDI wins are maximized. Im not using doc/view arch.

3) Whenever I try to create a toolbar from insided an MFC ext. dll, XTP crashes inside

CXTPPaintManager::DrawControl

The knowdlege base mention something about not linking with XTP inside MFC ext dll's, which makes no sense to me.

4) Although the code seems very solid, the design is so different fom MFC, that it makes is difficult to integrate into existing apps. Like memupopup messages getting route differently, and the fact that popup menues are not autmatically substituted. I had to work around a number of issues because I don't use LoadMenu/LoadToolbar, but create everything dynamically at runtime.

Am I missing the big picture?

-Tom

 

Back to Top
daniel001 View Drop Down
Newbie
Newbie


Joined: 04 August 2003
Location: Netherlands
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote daniel001 Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2003 at 2:31am

Have you got your answer? 'Cause my question is the same

Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 3:11pm

Hello,

Take a look at this turtorial, this should help point you in the right direction:
http://www.codejock.com/support/KB_PRO/002000.asp

Cheers,
Codejock Software

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.203 seconds.