EDN Admin
Well-known member
Hi
I was wondering if anybody could tell me why when I add cs.cx = somenum and cs.cy =somenum to the CMainFrame:reCreateWindow(CREATESTRUCT& cs) of a program in Visual Studio C++ 2012 it does not work. The window stays the same size.
e.g
BOOL CMainFrame:reCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWndEx:reCreateWindow(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
I was wondering if anybody could tell me why when I add cs.cx = somenum and cs.cy =somenum to the CMainFrame:reCreateWindow(CREATESTRUCT& cs) of a program in Visual Studio C++ 2012 it does not work. The window stays the same size.
e.g
BOOL CMainFrame:reCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWndEx:reCreateWindow(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