Question about the size of the view

HI everyone
I find that in the frame wnd created by the OCAF Appwizard the object can be displayed just in a limited rectangle,just in the left and bottom of the wnd.I want to display the object all the wnd of user,but I can't find the right parameters to modify.If someone know the method please help me.

Sharjith Naramparambath's picture

You may have to add the code in the OnResize callback. Check the code in the wizard generated Viewer application's OnResize method.

It must be something like:

if(myView->MustBeResized())
{
myView->Resize();
}

Hope this helps!

Regards
N. Sharjith

Sharjith Naramparambath's picture

Sorry for the wrong code sample

It is like this:

void CDisplayAnimationView3D::OnSize(UINT nType, int cx, int cy)
{
if (!myView.IsNull())
myView->MustBeResized();

}

Regards
N. Sharjith

comixwin's picture

Dear Nair Sharjith
Thank you for your help.The problem has gone.
Could you tell me how can you learn OCC so well?
It's hard for me and I feel the help document is not so convenient as MSDN.
For your help,I can do nothing but thank you again and again...
Regards
Com