| 2109 | |
| 2110 | } |
| 2111 | void MouseCall (int event, int x, int y, int flag, void* pUserData) |
| 2112 | { |
| 2113 | CMatchToolDlg* pDlg = (CMatchToolDlg*)pUserData; |
| 2114 | |
| 2115 | if (event == CV_EVENT_MOUSEMOVE) |
| 2116 | { |
| 2117 | int iX = int ((x + pDlg->m_hScrollBar.GetScrollPos ()) / pDlg->m_dNewScale); |
| 2118 | int iY = int ((y + pDlg->m_vScrollBar.GetScrollPos ()) / pDlg->m_dNewScale); |
| 2119 | CString strPos; |
| 2120 | strPos.Format (L"%s : %d, %d", pDlg->m_strLanPixelPos, iX, iY); |
| 2121 | pDlg->m_statusBar.SetPaneText (3, strPos); |
| 2122 | } |
| 2123 | //Tracker |
| 2124 | HWND hWnd = (HWND)cvGetWindowHandle ("SrcView"); |
| 2125 | CWnd* pWndView = CWnd::FromHandle (hWnd); |
| 2126 | CDC* pDC = pWndView->GetDC (); |
| 2127 | if (event == CV_EVENT_LBUTTONDOWN) |
| 2128 | { |
| 2129 | |
| 2130 | } |
| 2131 | pWndView->ReleaseDC (pDC); |
| 2132 | } |
| 2133 | |
| 2134 | |
| 2135 | void CMatchToolDlg::OnBnClickedButtonChangeToleranceMode () |
nothing calls this directly
no outgoing calls
no test coverage detected