|
|
当前位置:首页 > > vx++鼠标左键点击区域响应代码 |
void CMy11111111Dlg::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CRect rect(0, 0, 400, 400); ScreenToClient(rect); if(PtInRect(rect, point)) { AfxMessageBox("Success"); } CDialog::OnLButtonDown(nFlags, point); }
|
|