Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Outlook bar in docking pane in MDI frame
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Outlook bar in docking pane in MDI frame

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


Joined: 14 October 2004
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote cdyckes Quote  Post ReplyReply Direct Link To This Post Topic: Outlook bar in docking pane in MDI frame
    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

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: 15 October 2004 at 5:48am

What problem with create do you have?

Did you see Samples\ToolkitPro\ShortcutBar ?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cdyckes View Drop Down
Newbie
Newbie


Joined: 14 October 2004
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote cdyckes Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 8:07am

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

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: 18 October 2004 at 1:14am

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)
{
 if (wParam == XTP_DPN_SHOWWINDOW)
 {
  // get a pointer to the docking pane being shown.
  CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
  if (!pPane->IsValid())
  {
     pPane->Attach(&m_wndOut look);
  }

 return TRUE; // handled
}

return FALSE;

}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cdyckes View Drop Down
Newbie
Newbie


Joined: 14 October 2004
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote cdyckes Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2004 at 2:21pm

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

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