Hi !

I want derive my class as protected from its baseclass, e.g.
Code:
class CMyRect : protected CRect
{
}
because nobody should change CRect directly, but I would like to provide a possibility to get a copy of the base class, e.g.
Code:
CMyRect* p = new CMyRect();
CRect r = *p;
or even can access const methods, like
Code:
CMyRect* p = new CMyRect();
int n = p->Height();
Is there a possibility to define (an) operator(s) for this ?

Thanks in advance !