CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Join Date
    Jun 2004
    Posts
    1,352

    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.

  2. #17
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    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

  3. #18
    Join Date
    Jun 2004
    Posts
    1,352

    Re: CButton OnRButtonDown

    Quote Originally Posted by VictorN View Post
    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.

  4. #19
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  5. #20
    Join Date
    Jun 2004
    Posts
    1,352

    Re: CButton OnRButtonDown

    Quote Originally Posted by Arjay View Post
    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.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured