Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to unclamp the frame's max size...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: How to unclamp the frame's max size...
    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;

}

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 October 2009 at 1:26am
Hi,
yes, its OS restriction. you can see it with any window.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post 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.
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.063 seconds.