Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Create Pane - Unwanted Space
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Create Pane - Unwanted Space

 Post Reply Post Reply
Author
Message
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Topic: Create Pane - Unwanted Space
    Posted: 18 December 2007 at 5:05am

uploads/20071218_050342_unwanted_space.zip

Hi

Am trying to use CXTPDockingPaneManager in my SDI application.
When I use docking pane manager some unwanted space is available in the right corner of the view(after the splitter).  Am unable to resize the same till towards my MainFrame.
In MainFrame.cpp - OnCreate I have the following code...
----------------------------------------------------------------------------
CXTPDockingPane *pDocPaneTreeView = NULL;

m_XTPDocPaneManager.InstallDockingPanes ( this );

m_XTPDocPaneManager.SetClientMargin ( 0 );

m_XTPDocPaneManager.SetStickyFloatingFrames(TRUE);

m_XTPDocPaneManager.SetThemedFloatingFrames(TRUE);

// -- $TSMS$ -- Create the Tree View Pane.

//---------------------------------------------------------

pDocPaneTreeView = m_XTPDocPaneManager.CreatePane ( ID_DOC_PANE_TREE_VIEW, CRect ( 0, 0, 350, 100 ), xtpPaneDockLeft );

if ( NULL == pDocPaneTreeView )

{

TRACE0("Failed to left doc pane - tree view \n");

return -1; // fail to create

}

pDocPaneTreeView->AttachView ( this, RUNTIME_CLASS ( CLeadFinderTreeView ) );

pDocPaneTreeView->SetTitle ( "Folder View" );

pDocPaneTreeView->SetOptions ( xtpPaneNoCloseable | xtpPaneNoHideable | xtpPaneNoFloatable | xtpPaneNoDockable );

----------------------------------------------------------------------------

Find attached image for more information.
Can someone help me to resolve this.
Best Regards
Suyambu
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 18 December 2007 at 5:52am
hI,
 
Add  m_XTPDocPaneManager.HideClient(TRUE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2007 at 5:10am

Hi Oleg

Fantastic.  Thanks a lot.
I thought i have to do handle OnSize to solve this issue.
Anyway Thank you very much.
Best Regards
Suyambu
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.160 seconds.