RECT rect;
void CMyDlg::OnButton1()
{
// TODO: Add your control notification handler code here
rect.bottom=553;
rect.right=866;
rect.left=578;
rect.top=343;
::ClipCursor(&rect);
}
void CMyDlg::OnButton2()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
if (m_mm==438)
{
ClipCursor(NULL);
}
}