CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Obtaining a CPoint object

    I have a MDI application that uses a CFormView. I have a ListCtrl control on the formview and I need to get a CPoint object of where my mouse is to find the particular row in a Clistview I am in. The message "On left button" only replys if I am in the area of the formview but does not reply if I am in the ListCtrl. How does one get a CPoint of the mouse location if it is not passed as an argument in the message function?

    Thanks

    Jim Bassett


  2. #2
    Guest

    Re: Obtaining a CPoint object

    Try GetCursorPos. It will fill in a POINT structure for you. Or you could use GetMessagePos which is the position of the mouse cursor at the time the message was retrieved by GetMessage.


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