Results 1 to 2 of 2

Thread: How to capture the mouse

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    3

    Exclamation How to capture the mouse

    I just need to capture the mouse position, but with the event schema of windows, because i couldnt find a way to know when a column in mshflexgrid is resized, i could know when the user tries to resize it by getting the mouse event from windows, by using the message system, but it is still confusing how to get the info from windows.

    if someone is really interesed about events and how to handle them with vb take a look at this place:

    http://www.merrioncomputing.com/Download/index.htm

    there is some source code, around 72 classes than handle around 1500 APIs, but i do not need all of them, and cannot understand fully how to use it.

    Thanks for any info.

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Try this.

    Public Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINTAPI) As Long

    That which does not kill us, only makes us stronger.

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