Window Resizing

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
I was wondering if anybody could tell me why when I add cs.cx = somenum and cs.cy =somenum to the CMainFrame::PreCreateWindow(CREATESTRUCT& cs) of a program in Visual Studio C++ 2012 it does not work. The window stays the same size.
e.g
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWndEx::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs

cs.cx = 300;
cs.cy = 300;
return TRUE;
}
I am using Visual Studio 2012 with Windows 7
I tried it with Visual Studio 6 and Windows XP and it worked perfectly. When the Visual Studio 6 program was converted to Visual Studio 2012 it continued to work. But if you create the program using Visual Studio 2012 then it does not work
Thank you

View the full article
 
Back
Top