摘要: 1.添加自绘控件类,使其派生自COwnerDraw,例如class MyButtonEx:public CWindowImpl<MyButtonEx, CButton> ,public COwnerDraw<MyButtonEx>2.在自绘控件类中添加消息映射CHAIN_MSG_MAP_ALT,例如:CHAIN_MSG_MAP_ALT(COwnerDraw<MyButtonEx>, 1)3.END_MSG_MAP之前要添加DEFAULT_REFLECTION_HANDLER()4.重写void DrawItem(LPDRAWITEMSTRUCT lpds)等 阅读全文
posted @ 2012-11-08 23:40 特洛伊人 阅读(2223) 评论(0) 推荐(0) 编辑