MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / OnLButtonUp

Method OnLButtonUp

ColorCop/ColorCopDlg.cpp:1715–1746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1713}
1714
1715void CColorCopDlg::OnLButtonUp(UINT nFlags, CPoint point) {
1716 // Stop eyedropper or magnifier mode
1717 if (m_isEyedropping || m_isMagnifying) {
1718 OnCopytoclip();
1719
1720 if (bRelativePosition) {
1721 bRelativePosition = FALSE;
1722 }
1723 Invalidate(TRUE);
1724 StopCapture();
1725 }
1726
1727 // Reset magnifier drop state
1728 m_MagDrop = false;
1729
1730 // Stop auto-repeat zoom timers
1731 if (m_isMagMinusDown) {
1732 m_isMagMinusDown = FALSE;
1733 KillTimer(2);
1734 }
1735 if (m_isMagPlusDown) {
1736 m_isMagPlusDown = FALSE;
1737 KillTimer(2);
1738 }
1739
1740 // Restore cursor if EasyMove was active
1741 if (m_Appflags & EasyMove) {
1742 SetCursor(m_hStandardCursor);
1743 }
1744
1745 CDialog::OnLButtonUp(nFlags, point);
1746}
1747
1748void CColorCopDlg::OnMouseMove(UINT nFlags, CPoint point) {
1749 CString strStatus;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected