How to use GetMouseMovePoints ??
From: Rage coder (coder_at_clever-devel.org)
Date: 04/13/04
- Next message: Ed Debrot: "Re: BthSetMode"
- Previous message: Daniel: "MessageBeep() does not sound!"
- Next in thread: Bruce Eitman \(eMVP\): "Re: How to use GetMouseMovePoints ??"
- Reply: Bruce Eitman \(eMVP\): "Re: How to use GetMouseMovePoints ??"
- Maybe reply: Rage coder: "Re: How to use GetMouseMovePoints ??"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 12:44:51 +0200
How are we suppose to use GetMouseMovePoints ?
I'm a bit confused here. The embedded visual c++ documentation is not
really clear. Neither is the msdn website support.
We're told to use 3 parameters : 1/ a pointer to an array of POINT
structures, 2/ an unsigned integer that specifies the size, in points,
of the buffer passed in the 1st parameter, a pointer to an unsigned
integer. witch contains the number of points actually retrieved into the
buffer (I do not really understand the use for this parameter).
here is my soure code :
#define NBPOINT 5
for (i=0;i<200;i++)
{
if( GetMouseMovePoints(p,NBPOINT,&received) == TRUE )
{
printf("This seems to work!!\n");
for (j=0;j<NBPOINT;j++)
printf("%d : x:%d, y:%d\n",j,p[j].x,p[j].y);
printf("received:%d\n",received);
}
else
{
printf("This doesn't work!!\n");
printf("received:%d\n",received);
}
printf("\n\n");
Sleep(2000);
}
Here is a sample outup given by the execution :
This seems to work!!
0 : x:AAAAA y:BBBBB
1 : x:CCCCC y:DDDDD
2 : x:EEEEE y:FFFFF
3 : x:GGGGG y:HHHHH
4 : x:IIIII y:JJJJJ
received:0
This seems to work!!
0 : x:AAAAA y:BBBBB
1 : x:CCCCC y:DDDDD
2 : x:EEEEE y:FFFFF
3 : x:GGGGG y:HHHHH
4 : x:IIIII y:JJJJJ
received:0
etc...
Can anyone help me ?
- Next message: Ed Debrot: "Re: BthSetMode"
- Previous message: Daniel: "MessageBeep() does not sound!"
- Next in thread: Bruce Eitman \(eMVP\): "Re: How to use GetMouseMovePoints ??"
- Reply: Bruce Eitman \(eMVP\): "Re: How to use GetMouseMovePoints ??"
- Maybe reply: Rage coder: "Re: How to use GetMouseMovePoints ??"
- Messages sorted by: [ date ] [ thread ]