Print Page | Close Window

Possible to use Panes without doc/view

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=194
Printed Date: 21 June 2024 at 4:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Possible to use Panes without doc/view
Posted By: Torsten
Subject: Possible to use Panes without doc/view
Date Posted: 26 October 2003 at 11:11am

Is it possible to use all the features of the toolkit pro e.g. docking panes WITHOUT the document/view-modell

Greets

Torsten




Replies:
Posted By: kstowell
Date Posted: 31 October 2003 at 11:27am

Hi Torsten,

Yes you can use the toolkit pro without the document view model.  I created a sample that illustrates how to do this, let me know if this helps.

Cheers,
Codejock Support

Download: http://forum.codejock.com/uploads/Administrator/DF6_NoDocViewSample.zip - DF6_NoDocViewSample.zip



Posted By: AdrianM
Date Posted: 21 February 2005 at 4:40pm

The http://forum.codejock.com/uploads/Administrator/DF6_NoDocViewSample.zip - DF6_NoDocViewSample.zip  sample shows a problem that I am having.

If you run the mentioned sample, and resize any of the panes to the far right.. the pane will stop, and not resize all the way. 

Any idea why this happening ?  And how to remove this empty area from the application so that the panes fill the frame properly?  In my case, I have an SDI app.

Thanks!

- Adrian



Posted By: Oleg
Date Posted: 22 February 2005 at 2:26am

Add clipping styles fo SDI application:

 

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs

 if( !CFrameWnd::PreCreateWindow(cs) )
  return FALSE;

 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

 return TRUE;
}

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AdrianM
Date Posted: 23 February 2005 at 3:12pm

Hi Oleg,

Thanks for the help.  However, I already have clipping styles.  Any other ideas what it could be?  Here is my PreCreateWindow...

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

if( !CFrameWnd::PreCreateWindow(cs) )

return FALSE;

cs.style &= ~(LONG) FWS_ADDTOTITLE; //removes the "Untitled" from MainFrame Title

cs.style &= ~WS_HSCROLL;         // no horizontal scroll bars

cs.style &= ~WS_VSCROLL;         // no vertical scroll bars

cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

return TRUE;

}




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