16,472
社区成员
发帖
与我相关
我的任务
分享
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg void SetTextColor( COLORREF crText );
afx_msg void SetFontSize(int nSize);
afx_msg void SetBackColor(COLORREF crBackColor) ;
afx_msg void SetTransparent(bool bTran);
这几个函数钱加public:就可以了,因为
#define DECLARE_MESSAGE_MAP() \
protected: \
static const AFX_MSGMAP* PASCAL GetThisMessageMap(); \
virtual const AFX_MSGMAP* GetMessageMap() const; \
展开后会加入protected:权限,默认DECLARE_MESSAGE_MAP以后的都是protected