For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

MFC OCAF WIZARD

Anonymous's picture
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

water's picture

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

M.G.THIRUNAVUKKARASU's picture

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.

M.G.THIRUNAVUKKARASU's picture

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();
}

mamadou sy's picture

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

mamadou sy's picture

Please disrigard. I am working on it

mamadou sy's picture

Please disregard. I am working on it

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.