为什么子类要调用父类的同名成员函数?
void CMyTestView::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
AfxMessageBox("test");
CView::OnRButtonDown(nFlags, point); //为什么要加此句,去掉后
//也可以正常运行.
}
//c++没理解好就用vc++开发,有难度啊!