void CSDIView::OnMouseMove(UINT nFlags, CPoint point)
{
CString sMsg;
sMsg.Format("%d,%d",point.x,point.y);
::SetWindowText(this->GetParent()->m_hWnd,sMsg);
CView::OnMouseMove(nFlags, point);
}
void CSDIView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
if(nChar ==VK_ESCAPE) ::PostQuitMessage(0);
CView::OnKeyDown(nChar, nRepCnt, nFlags);
}
移动鼠标显示坐标及退出
最新推荐文章于 2020-09-05 21:01:47 发布