CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    2

    MFC mouse click coordinates

    I have a CScrollView with a large image being shown and scrolled. When the user clicks, I respond to the L button down. how do I convert the mouse click coordinates to the corresponding point in the image, which could be scrolled some when the click occurs?

  2. #2
    Join Date
    Nov 2018
    Posts
    120

    Re: MFC mouse click coordinates

    The first question is, can you do it before the image has scrolled?

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: MFC mouse click coordinates

    Quote Originally Posted by Vic Broquard View Post
    L button down. how do I convert the mouse click coordinates to the corresponding point in the image, which could be scrolled some when the click occurs?
    Did you take a look at Scribble in MS samples?
    Best regards,
    Igor

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