error C2039: 'SetDCPenColor' : is not a member of 'CPaintDC'
e:\vc6\vc6\vc620200511\vc6\vc98\include\afxwin.h(1012) : see declaration of 'CPaintDC'
这是错误提示的代码
dc.SetDCPenColor(0xF0F0F0);
afxwin.h中的代码是这样的
class CPaintDC : public CDC
{
DECLARE_DYNAMIC(CPaintDC)
// Constructors
public:
CPaintDC(CWnd* pWnd); // BeginPaint
// Attributes
protected:
HWND m_hWnd;
public:
PAINTSTRUCT m_ps; // actual paint struct!
// Implementation
public:
virtual ~CPaintDC();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};