Results 1 to 6 of 6

Thread: Get Mouse Button States

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    India
    Posts
    97
    Hiya,
    Not that i know of.. but u could simulate this in 2 steps couldn't u???....
    #1 MouseDown... set some flag...
    #2 MouseUp... reset the flag...

    so as long as the flag is set... the button is held down....

    cheers
    gaurav
    [email protected]
    " Programming today is a race between software-engineers striving to build bigger and
    better idiot-proof programs and the universe trying to produce bigger and better idiots.
    So far the universe is winning".
    :-)

  2. #2
    Guest
    I don't think there is another way. Let's just say...VB needs API to live .

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Unfortunatley it's a fairly Complecated Situation So I Can't use the Flag Option, Just To Clarify Matthew I know there's no Way in VB, The GetCursorPos API Won't work Either, I'm Looking For An API That Can, I just uses GetCursorPos as it is a Similar API to Get the Mouse Posiion, I need one Like It to Get the Button States, Or any Way at all.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    India
    Posts
    97
    Sorry mate,
    The situation seems to be that u want an event that tells u when Nothings happening!!! kinda tough huh!! so tell me again y can't u use the flags option???

    there's always a way...

    cheers
    Gaurav
    [email protected]
    " Programming today is a race between software-engineers striving to build bigger and
    better idiot-proof programs and the universe trying to produce bigger and better idiots.
    So far the universe is winning".
    :-)

  5. #5
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84
    I don't know if this helps but take a look at
    http://www.vbaccelerator.com/codelib/hook/vbalhook.htm

    I used their example recently , modified it a little to determine when my form is moved in order to move another form simultaneously.


  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I Don't think a Hook would Be too much use, you Say you used one for Simultanious form moving, Would Subclassing Not be better for that, just moving the other window on the WindowPosChanged Message.

    But thanks anyway.

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