![]() |
Outlook bar in docking pane in MDI frame |
Post Reply ![]() |
Author | |
cdyckes ![]() Newbie ![]() Joined: 14 October 2004 Location: United Kingdom Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 14 October 2004 at 7:03pm |
Hi All, I'm trying to add add an XTPro outlook2003 command bar to an existing MDI application by using a docking window at the left hand side of the MDI area. I've got as far as creating and displaying the docking window, but can't work out how to create the outlook bar and, in particular, attach it to the docking window. Can anyone point me at an example (if I've missed one), or tell me what code I'd need to add in CMainframe to achieve this? Thanks Colin |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
What problem with create do you have? Did you see Samples\ToolkitPro\ShortcutBar ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cdyckes ![]() Newbie ![]() Joined: 14 October 2004 Location: United Kingdom Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Oleg, I've tried the splitter window approach used in the ShortcutBar example, but this example only seems to work for very simple view classes. I have three different view classes possible, all of which need an sql database connection created when the document/view is created as part of the normal MFC creation process. Two of them use a CFormView derived class and one an RTFView. OnCreateClient seems to be way too early in MFC's creation process to arbitrarily create a view of the sort I need and so I thought I'd try the docking window approach as suggested by another thread. I've created the docking window, and just need to know what class I need to instantiate to get an OutlookBar and most importantly how I set that as the child window of the docking bar. I don't think any of the samples cover this (I have looked Any suggestions, or better still an example, would be much appreciated. BTW, Xtreme Toolkit Pro looks a great product, but seems to be lacking any useable documentation! Colin |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
See samples of DockingPane folder. You need to catch XTPWM_DOCKINGPANE_NOTIFY message and attach Outlook Bar in this handler: LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) return TRUE; // handled return FALSE; } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cdyckes ![]() Newbie ![]() Joined: 14 October 2004 Location: United Kingdom Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Thanks for your help Oleg. The DockingContainers example seems closest to what I need. I'll see if that model works for my application Thanks Colin |
|
![]() |
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 |