Ejemplo n.º 1
0
void CRepositoryBrowser::OnContextMenu(CWnd* pWndFrom, CPoint point)
{
	if (pWndFrom == &m_RepoList)
		OnContextMenu_RepoList(point);
	else if (pWndFrom == &m_RepoTree)
		OnContextMenu_RepoTree(point);
}
Ejemplo n.º 2
0
void CRepositoryBrowser::OnContextMenu(CWnd* pWndFrom, CPoint point)
{
	if (pWndFrom == &m_RepoList)
	{
		CRect headerPosition;
		m_RepoList.GetHeaderCtrl()->GetWindowRect(headerPosition);
		if (!headerPosition.PtInRect(point))
			OnContextMenu_RepoList(point);
	}
	else if (pWndFrom == &m_RepoTree)
		OnContextMenu_RepoTree(point);
}