
Tue, 03/25/2008 - 05:14
Forums:
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.
Tue, 03/25/2008 - 12:08
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
Tue, 03/25/2008 - 17:56
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
Wed, 03/26/2008 - 05:03
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