鼠标响应
1.右击类->属性,新建消息处理
头文件中的声明
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
源文件中
映射位置ON_WM_LBUTTONDOWN()
实现
void Cvc1001View::OnLButtonDown(UINT nFlags, CPoint point)
{
 // TODO: 在此添加消息处理程序代码和/或调用默认值
 MessageBox(_T("hi"));
 CView::OnLButtonDown(nFlags, point);
}

相关文章:

  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案