![]() |
Evaluating: How to do this. Views in Panes |
Post Reply ![]() |
Author | |
jhunjan ![]() Newbie ![]() Joined: 11 December 2008 Location: Canada Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 11 December 2008 at 1:25pm |
Currently evaluating the DockingPane classes.
I am testing the CXPTFrameWnd + CXTPDockingPaneManager into our existing application. I have the following child frame: class CStagedChildFrm : public CXTPFrameWnd This had 2 views which were in 2 splitter panes class CStagedGridView I want to convert the 2 views to 2 docking pane views: LRESULT CStagedChildFrm::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) { if (wParam == XTP_DPN_SHOWWINDOW) { CXTPDockingPane* pPane = (CXTPDockingPane*)lParam; if (!pPane->IsValid()) { switch (pPane->GetID()) { case IDR_PANE_PROPERTIES: // 1st view... I have a view already created and want the pane to draw it. pPane->Attach (pProperties); // this does not work. // pProperties is a new view I created like this in OncreateClient. // pProperties = dynamic_cast <CStagedGridView*> (CreateView (pContext)); //class CStagedChildFrm : public CXTPFrameWnd This fails to work since I am new to this (2hrs ago); so I am sure there is a proper way to do this. If anyone knows let me know. Jas jhunjan@belzberg.com |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
There is AttachView method that creates View and Attach it:
pPane->AttachView(this, RUNTIME_CLASS(CViewOne))
Please start evaluating with our samples. They have all you need :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |