-
September 6th, 2010, 03:23 PM
#16
Re: CButton OnRButtonDown
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");
}
}
Rate this post if it helped you.
-
September 6th, 2010, 03:30 PM
#17
Re: CButton OnRButtonDown
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.
Victor Nijegorodov
-
September 6th, 2010, 05:01 PM
#18
Re: CButton OnRButtonDown
Originally Posted by VictorN
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.
The Above code works. I tested it.
Rate this post if it helped you.
-
September 6th, 2010, 05:36 PM
#19
Re: CButton OnRButtonDown
Context help for a tree control isn't very interesting. Solve it for a per tree item basis and then you'll have something.
-
September 6th, 2010, 06:34 PM
#20
Re: CButton OnRButtonDown
Originally Posted by Arjay
Context help for a tree control isn't very interesting. Solve it for a per tree item basis and then you'll have something.
Probobly, the point I was trying to make is that Context help works for a control, if you want to solve for items in the control, that will require more processing.
Rate this post if it helped you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|