这是派生类的CTLCOLOR()函数:
HBRUSH CMyEdit::CtlColor(CDC* pDC, UINT nCtlColor)
{
// TODO: Change any attributes of the DC here
// TODO: Return a non-NULL brush if the parent's handler should not be called
pDC->SetBkMode(TRANSPARENT);
//pDC->SetTextColor(RGB(0,0,0));
m_brHollow.CreateStockObject(HOLLOW_BRUSH);
return m_brHollow;
error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject'
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
This diagnostic occurred in the compiler generated function 'CGdiObject::CGdiObject(const CGdiObject &)'