Sun, 04/16/2006 - 16:04
Forums:
Dear forum members i've started using OCAF wizard for my project work. When i'm building an application using OCAF wizard it is creating the graphic window in the size of 656 in width and 241 in Height, it is not resizing with the window. I dont know how to make it resizable, pls help me in this reg. Advance thanks
Mon, 04/17/2006 - 07:34
Hi,
You must go to the project's cpp and find this
"pMainFrame->ShowWindow(m_nCmdShow);"
if you want to mainframe max size,change like this
"pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);"
Ang using class wizard to add function "ActivateFrame" in ChildFrame.Go to ChildFrame and change "CMDIChildWnd::ActivateFrame(nCmdShow);" to "CMDIChildWnd::ActivateFrame(SW_SHOWMAXIMIZED);"
enjoy it
Mon, 04/17/2006 - 09:33
Thank you Mr water. Sorry I've posted the question in a wrong way and wrong meaning. The OCAF wizard application shows the graphics only in the left bottom portion of the window (partial display when clicking fit all, the remaining portion hides). However i'll try with your suggestion and back the final output.
Mon, 04/24/2006 - 09:59
Thank you to my friends who ever posted this quetsions earlier and got reply for that.
The above mentioned problem can be solved by this way
void projectview::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
if (!myView.IsNull())
myView->MustBeResized();
}
Thu, 06/29/2006 - 22:23
Hi M.G,
I just want to know how did you start the OCAF application.
Thank you for talking time to explain because I am a new user of OCC
Fri, 06/30/2006 - 00:09
Please disrigard. I am working on it
Fri, 06/30/2006 - 00:09
Please disregard. I am working on it