Print Page | Close Window

MDI Panes, Where are the samples?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=96
Printed Date: 26 April 2024 at 4:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Panes, Where are the samples?
Posted By: spike
Subject: MDI Panes, Where are the samples?
Date Posted: 10 July 2003 at 1:36pm

I noticed that the Docking pane library has the ability to create docking panes inside an MDI Child window. I have this working by using the following code:

int CCustomJobFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
 if (COutlookBarFrame::OnCreate(lpCreateStruct) == -1)
  return -1;
 
 XTPDockingPaneManager()->InstallDockingPanes(this);
 XTPDockingPaneManager()->SetTheme(xtpPaneThemeOffice);
 
 CXTPDockingPane* pwndPane1 = XTPDockingPaneManager()->CreatePane(IDR_CUSTOMJOBDATA, CRect(0, 0,200, 120), dockTopOf);
 CXTPDockingPane* pwndPane2 = XTPDockingPaneManager()->CreatePane(IDR_CUSTOMJOBITEMDATA, CRect(0, 0,200, 120), dockLeftOf );

 m_ctlJobData.CreateGrid( WS_CHILD | WS_VISIBLE, CRect( 0, 0, 0, 0 ), this, 134346 );
 m_ctlJobItemData.CreateGrid( WS_CHILD | WS_VISIBLE, CRect( 0, 0, 0, 0 ), this, 134347 );
   
 return 0;
}

The code that is bolded seems to be required to allow docking panes in the MDI Child Window (CCustomJobFrame).  What I dont understand is what happens when I want to install docking panes on MDI Child windows from within a different class. I have 3 or 4 MDI Child Windows (Different classes) and InstallDockingPanes() only allows for 1 FrameWindow to allow docking panes in them.

Anyway, I was wondering also where the sample code is for the MDIPane example in the evaluation downloads. Or are there more docking pane samples somewhere else?

 

Thanks




Replies:
Posted By: Oleg
Date Posted: 10 July 2003 at 11:52pm

There are some changes in architecture of docking pane 7.10.

Now Docking Pane is not "singletone" you can use own manager for each CFrameWnd.

Upgrade your source.



Posted By: spike
Date Posted: 11 July 2003 at 8:17am
What is the best way to get the latest version of the source code? Do I have to call or can I download it through my login?


Posted By: kstowell
Date Posted: 12 July 2003 at 8:27am

Hello...

You can log into the online store and select order status.  At the bottom of your invoice, you will see your download link where you can download the latest version of the library.

Best regards,
Codejock Support



Posted By: blindemann
Date Posted: 12 July 2003 at 9:04am

As a Codejock customer you can always get the latest version by going to the Customer Area and logging in. You are allowed 3 downloads. Each time a new version is released your download count is reset back up to 3 so you will always have access to the latest version. You are allowed to download the latest version for one year after purchasing the product. This period can be extended if you purchase a maintenance agreement.

Bob

 



-------------
Bob at Codejock



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