Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtPPVW problem Collapse All
Subject Author Date
Offer Har Apr 12, 2007 - 4:43 AM

Dear Support,

I tried to use CExtPPVW in my project, but got a flickering problem; my original view is drawn and also the preview view is drawen. The original view is drawing on top of the menu and the preview view.
If I remove the CExtPPVW template from my project, the default MFC preview works fine.

What else should I do beside templating my view so that the preview will work?

Thanks,
Ron.

Technical Support Apr 12, 2007 - 1:22 PM

You can see how CExtPPVW is used in the DRAWCLI sample and use it similarly in your project. There must be some differences which explain what causes the problem. If the problem persists, you can send us your view class so we can see what’s wrong.

Offer Har Apr 12, 2007 - 1:28 PM

Dear Support,

I used the DRAWCLI as a reference, but no luck.
Please let me know if there is anything else I should be aware of beside adding the template class.
Sending you my view will be the last resort, because it depends on a lot of other items.

Regards,
Ron.

Technical Support Apr 13, 2007 - 4:41 AM

Please check once again the following in the DRAWCLI sample application and in your project(s):

1) How CExtPPVW is used in the CDrawView::OnScrollBy() method.

2) If you invoke the CExtPPVW < C_base_of_your_View > :: method_name() base class members instead of C_base_of_your_View::method_name().

3) The CDrawView::OnPrepareDC() method should the C_base_of_your_View::OnPrepareDC() method and not CExtPPVW < C_base_of_your_View > :: OnPrepareDC().

4) The view window and MDI child frame window in the MDI project should have the WS_CLIPSIBLINGS|WS_CLIPCHILDREN standard window styles.

Offer Har Apr 16, 2007 - 9:24 AM

Dear Support,

Did you reproduce the problem in the project I sent you?

Regards,
Ron.

Technical Support Apr 16, 2007 - 11:38 AM

Your sample application is based on MFC’s print preview -- not on the CExtPPVW template class from Prof-UIS. Of course, we could convert it into CExtPPVW-based one, but this would be the same as you can see in the CDrawView class in the DRAWCLI sample.

Offer Har Apr 16, 2007 - 11:47 AM

Exactly!
Try it and you’ll see that it doesn’t work like the DRAWCLI.
And if it does, then please let me know... because I did just that and it didn’t work.
I also sent you via mail captures of the weird things that happen to me when i apply the CExtPPVW in this project.

Thanks,
Ron.