That worked:
Code:void MyDialog::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
if(pWnd == &this->m_tree_database){
AfxMessageBox("RMouse on Tree Control");
}
}
Printable View
That worked:
Code:void MyDialog::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
if(pWnd == &this->m_tree_database){
AfxMessageBox("RMouse on Tree Control");
}
}
And the same will work for each but tree control (if you will implement it in the control derived class).
For a tree control it is a bit more tricky.
Context help for a tree control isn't very interesting. Solve it for a per tree item basis and then you'll have something.