🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #15619

Re: controle over de muis in vb

#15619
From: salartje
Date: Wed, 13 Sep 2000 00:00
76 lines
4373 bytes
ViperRT10 <i.hate@spammers.net> wrote in message
news:AUNv5.8797$R_2.75204@afrodite.telenet-ops.be...
> maar die mouse_event krijg ik niet aan de praat
Als je meer informatie over een bepaalde API wilt, kun je het beste naar
http://msdn.micrsoft.com/library/default.asp
als je dan gaan zoeken (haal alle vinkjes weg behalve bij Platform SDK) vind
je info over die API, zoals:

===
The mouse_event function synthesizes mouse motion and button clicks.

Windows NT: This function has been superseded. Use SendInput instead.

VOID mouse_event(
  DWORD dwFlags, // flags specifying various motion/click variants
  DWORD dx,      // horizontal mouse position or position change
  DWORD dy,      // vertical mouse position or position change
  DWORD dwData,  // amount of wheel movement
  DWORD dwExtraInfo
                 // 32 bits of application-defined information
);

Parameters
dwFlags
A set of flag bits that specify various aspects of mouse motion and button
clicking. The bits in this parameter can be any reasonable combination of
the following values: Value Meaning
MOUSEEVENTF_ABSOLUTE Specifies that the dx and dy parameters contain
normalized absolute coordinates. If not set, those parameters contain
relative data: the change in position since the last reported position. This
flag can be set, or not set, regardless of what kind of mouse or mouse-like
device, if any, is connected to the system. For further information about
relative mouse motion, see the following Remarks section.
MOUSEEVENTF_MOVE Specifies that movement occurred.
MOUSEEVENTF_LEFTDOWN Specifies that the left button is down.
MOUSEEVENTF_LEFTUP Specifies that the left button is up.
MOUSEEVENTF_RIGHTDOWN Specifies that the right button is down.
MOUSEEVENTF_RIGHTUP Specifies that the right button is up.
MOUSEEVENTF_MIDDLEDOWN Specifies that the middle button is down.
MOUSEEVENTF_MIDDLEUP Specifies that the middle button is up.
MOUSEEVENTF_WHEEL Windows NT: Specifies that the wheel has been moved, if
the mouse has a wheel. The amount of movement is given in dwData


dx
Specifies the mouse's absolute position along the x-axis or its amount of
motion since the last mouse event was generated, depending on the setting of
MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual
x-coordinate; relative data is given as the number of mickeys moved. A
mickey is the amount that a mouse has to move for it to report that it has
moved.
dy
Specifies the mouse's absolute position along the y-axis or its amount of
motion since the last mouse event was generated, depending on the setting of
MOUSEEVENTF_ABSOLUTE. Absolute data is given as the mouse's actual
y-coordinate; relative data is given as the number of mickeys moved.
dwData
If dwFlags is MOUSEEVENTF_WHEEL, then dwData specifies the amount of wheel
movement. A positive value indicates that the wheel was rotated forward,
away from the user; a negative value indicates that the wheel was rotated
backward, toward the user. One wheel click is defined as WHEEL_DELTA, which
is 120.
If dwFlags is not MOUSEEVENTF_WHEEL, then dwData should be zero.

dwExtraInfo
Specifies an additional 32-bit value associated with the mouse event. An
application calls GetMessageExtraInfo to obtain this extra information.

Return Values
This function has no return value.
===

ik heb de remarks er uit gehaald om dat die te lang waren, maar die kun je
dus op MSDN na lezen.

Salar
Technical Details
Message-ID: <8poid7$7bk$1@news.hccnet.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <0NKv5.8227$R_2.70049@afrodite.telenet-ops.be> <R2Mv5.8440$R_2.70945@afrodite.telenet-ops.be> <AUNv5.8797$R_2.75204@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 107324,9110b609832d989f
X-Google-Attributes: gid107324,public
X-Google-Thread: fcea4,9110b609832d989f
X-Google-Attributes: gidfcea4,public
From: "salartje" <salartje@hotmail.com>
Subject: Re: controle over de muis in vb
Date: 2000/09/13
Message-ID: <8poid7$7bk$1@news.hccnet.nl>
X-Deja-AN: 669312148
References: <0NKv5.8227$R_2.70049@afrodite.telenet-ops.be> <R2Mv5.8440$R_2.70945@afrodite.telenet-ops.be> <AUNv5.8797$R_2.75204@afrodite.telenet-ops.be>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@hccnet.nl
X-Trace: news.hccnet.nl 968871143 7540 193.173.120.49 (13 Sep 2000 18:52:23 GMT)
Organization: Hobby Computer Club News Network
X-MSMail-Priority: Normal
NNTP-Posting-Date: 13 Sep 2000 18:52:23 GMT
Newsgroups: be.comp.programming,nl.comp.programmeren