一、用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 ();
下载说明:请别用迅雷下载,失败请重下,重下不扣分!