▍1. 一、用ClassWizard生成一个新类,名字假设起为CMyButton,基类选为CButton; 二、在新类中用ClassWizard添加函数:Pr...
一、用ClassWizard生成一个新类,名字假设起为CMyButton,基类选为CButton; 二、在新类中用ClassWizard添加函数:PreSubclassWindow()、DrawItem()、OnMouseMove()、OnLButtonDown()、OnLButtonUp();-one with ClassWizard generate a new category, the names of hypotheses for CMyButton, elected CButton base class; Two of the new type used ClassWizard added function : PreSubclassWindow (), DrawItem (), OnMouseMove (), OnLButtonDown (), OnLButtonUp ();