Print Page | Close Window

Evaluating: How to do this. Views in Panes

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=12898
Printed Date: 22 July 2025 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Evaluating: How to do this. Views in Panes
Posted By: jhunjan
Subject: Evaluating: How to do this. Views in Panes
Date 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















Replies:
Posted By: Oleg
Date Posted: 12 December 2008 at 1:16am
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



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