DiscussionsIssue archiveOther usage issues

Archived discussion

Question about the size of the view

Other usage issuesTue, 03/25/2008 - 05:143 replies

Browse this forum
QuestionAuthor

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.

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

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. Commenter-1

02Commenter-1

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. Commenter-1

03Author

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