Print Page | Close Window

Outlook bar in docking pane in MDI frame

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1282
Printed Date: 02 May 2025 at 9:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Outlook bar in docking pane in MDI frame
Posted By: cdyckes
Subject: Outlook bar in docking pane in MDI frame
Date 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




Replies:
Posted By: Oleg
Date 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


Posted By: cdyckes
Date 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



Posted By: Oleg
Date 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


Posted By: cdyckes
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net