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"); } }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 20
Thread: CButton OnRButtonDownThreaded View
|
Click Here to Expand Forum to Full Width |