| 1431 | } |
| 1432 | |
| 1433 | void CColorCopDlg::StopCapture() { |
| 1434 | // we don't want to capture anymore, they let up the left mouse button, or hit ESC |
| 1435 | m_isMagnifying = m_isEyedropping = FALSE; |
| 1436 | SetCursor(m_hStandardCursor); // put standard cursor back on |
| 1437 | |
| 1438 | ReleaseCapture(); // let go of the mouse |
| 1439 | |
| 1440 | CWinApp* pApp = AfxGetApp(); |
| 1441 | |
| 1442 | // put the icons back in their holders |
| 1443 | if (m_Appflags & USECROSSHAIR) { |
| 1444 | m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_MYCROSS)); // location cursor |
| 1445 | } else { |
| 1446 | if (m_Appflags & Sampling5x5) { |
| 1447 | m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER_5X5)); |
| 1448 | } else if (m_Appflags & Sampling3x3) { |
| 1449 | m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER_3X3)); |
| 1450 | } else { // 1x1 or multi |
| 1451 | m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER)); // location cursor |
| 1452 | } |
| 1453 | } |
| 1454 | m_Magnifier.SetIcon(m_hMagCursor); |
| 1455 | |
| 1456 | bRelativePosition = false; |
| 1457 | // stop the timer |
| 1458 | KillTimer(1); |
| 1459 | |
| 1460 | return; |
| 1461 | } |
| 1462 | |
| 1463 | void CColorCopDlg::OnLButtonDown(UINT nFlags, CPoint point) { |
| 1464 | CDialog::OnLButtonDown(nFlags, point); |