Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Evaluating: How to do this. Views in Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Evaluating: How to do this. Views in Panes

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


Joined: 11 December 2008
Location: Canada
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhunjan Quote  Post ReplyReply Direct Link To This Post Topic: Evaluating: How to do this. Views in Panes
    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












Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.047 seconds.