MCPcopy Create free account
hub / github.com/DennisLiu1993/Fastest_Image_Pattern_Matching / MouseCall

Function MouseCall

MatchTool/MatchToolDlg.cpp:2111–2132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2109
2110}
2111void 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
2135void CMatchToolDlg::OnBnClickedButtonChangeToleranceMode ()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected