Print Page | Close Window

How to unclamp the frame's max size...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15384
Printed Date: 13 September 2025 at 5:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to unclamp the frame's max size...
Posted By: ddlittle
Subject: How to unclamp the frame's max size...
Date Posted: 16 October 2009 at 3:27pm
I have an MDI app using XTP 13.10, and the frame window is somehow clamped to the max size of the monitor is originally displays on (if it starts on video 1 set to 1920x2000, then it's impossible to stretch any wider than 1920.  if it starts on a 1240x1024, then it won't get any bigger than 1240 wide).
 
I have tried changing the (cs.cx,cx.cy,cs.x,cs.z) values in PreCreateWindow(), but those only seem to apply to the original location.  It aggravates my users - and me.
 
Any ideas?
 
Thanks!
 
- David
 
PS:  Here's my PreCreateWindow:
 

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

if( !CMDIFrameWnd::PreCreateWindow(cs) )

return FALSE;

cs.lpszClass = _T("XTPMainFrame");

CXTPDrawHelpers::RegisterWndClass(AfxGetInstanceHandle(), cs.lpszClass,

CS_DBLCLKS, AfxGetApp()->LoadIcon(IDR_MAINFRAME));

cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

return TRUE;

}




Replies:
Posted By: Oleg
Date Posted: 18 October 2009 at 1:26am
Hi,
yes, its OS restriction. you can see it with any window.


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


Posted By: ddlittle
Date Posted: 19 October 2009 at 9:46am
It doesn't  happen with any of the samples; I think it's something in my app.  do you have an MSDN KB article reference?  If it's an OS restriction and it doesn't happen to all apps, then there's a workaround somewhere.



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