Professional UI Solutions
Site Map   /  Register


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 » Cannot use CExtPPVW Collapse All
Subject Author Date
Offer Har Oct 13, 2008 - 7:30 AM


I think there is a design problem with this class.

If I have a CView derived class that implement OnPrepareDC, I cannot use  this template because it is defined as follows:

template < class _BC >
class CExtPPVW
    : public _BC
    , public CExtPPVW_Printable

So, both  CExtPPVW_Printable and my CView derived class (_BC) implement the same virtual function...

What way do you suggest to bypass this problem?



Technical Support Oct 14, 2008 - 4:07 AM

The CDrawView class in the DRAWCLI sample demonstrates how to resolve this problem. If you have two and more parent classes in some of your class and these classes have the same virtual method, then this method should be overridden in your class.