Hi!
Does anyone know how to open window/view maximized using MFC!?!?!
Thanks
new to MFC
Hi!
Does anyone know how to open window/view maximized using MFC!?!?!
Thanks
new to MFC
I don't know much about MFC, but with winapi you would call ShowWindow() with SW_SHOWMAXIMIZED
Hope you don't mind my bad english, I'm Austrian!
Isn't the constant SW_MAXIMIZE?Originally posted by Shade
I don't know much about MFC, but with winapi you would call ShowWindow() with SW_SHOWMAXIMIZED
1978 Silver Anniversary Corvette
you can maximize it from withing the view
((CMDIChildWnd*)GetParent())->MDIMaximize( );
CMDIFrameWnd::MDIMaximize
void MDIMaximize( CWnd* pWnd ); //where pWnd is the window you intend to maximize....
if this is an MDI app ofcourse...
zMan
by the way do this somewhere during initialization for the form like initial update or something....
zMan
Thank you all for your tip!
They all worked but I have another problem now that maximized window caused!
On my view I draw a two line graph, one below another.
The graph's enlarges within window being maximized and the second line graph overstepes half of the first line graph.
That's not good!
It's SDI app.
Can I fix that somehow???
Best Regards
new to MFC
p.s. My knowledge of english languages is not to good as well, it's not my mother language either.