Possible to use Panes without doc/view |
Post Reply |
Author | |
Torsten
Newbie Joined: 26 October 2003 Location: Germany Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
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, Download: DF6_NoDocViewSample.zip |
|
AdrianM
Newbie Joined: 08 August 2003 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
|
The 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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Add clipping styles fo SDI application:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) if( !CFrameWnd::PreCreateWindow(cs) ) cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; return TRUE;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
AdrianM
Newbie Joined: 08 August 2003 Location: United States Status: Offline Points: 10 |
Post Options
Thanks(0)
|
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; } Edited by AdrianM |
|
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 |