Problem with visualization using OCAF wizard

Hi every one ! I'm a newbie using OCC 5.2. I've created an application with the OCAF wizard. It seems that the view is not properly linked with the WNTWindow, the objects are displayed in a small part of the window.
Please Help me !

Stoltz's picture

I found the source of my problem , the appwizard doesn't write the OnSize function :

void COcafapp1View::OnSize(UINT nType, int cx, int cy)
if (!myView.IsNull())

It's nothing but it is a waste of time when you try to learn OCC.

Hope someone will write a nice AppWizard for VS .NET.



Wang Chris's picture

Hi, Stoltz

I have the same problem as you. But even after I added the OnSize function, it still can dispay the low part on the window. The upper seems covered by something.

Can you help me? Thanks a lot.