求助,关于Button
BIM极客 2006-04-30 03:07:12
从CButton派生一个子类CMyButton,并子类化一个按钮给它
在CMyButton重写
如果这样的话,如下:
void CMyButton::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
MessageBox(NULL,NULL,NULL);
CButton::OnLButtonDown(nFlags, point);
}
在click一次button之后,每次在dialog上单击都会被调用
而当
void CMyButton::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CButton::OnLButtonDown(nFlags, point);
MessageBox(NULL,NULL,NULL);
}
则没有这样的问题
为什么