class CCustomCtrl : public CWnd
{
DECLARE_DYNAMIC(CCustomCtrl)
public:
CCustomCtrl(void);
virtual ~CCustomCtrl();
protected:
DECLARE_MESSAGE_MAP()
};
IMPLEMENT_DYNAMIC(CCustomCtrl, CWnd)
CCustomCtrl::CCustomCtrl(void)
{
}
CCustomCtrl::~CCustomCtrl()
{
}
BEGIN_MESSAGE_MAP(CCustomCtrl, CWnd)
END_MESSAGE_MAP()
然后就可以在类中画自己想要的控件样式