subcalls.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MouFlushQue (1.2)
◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_MOU
USHORT MouFlushQue(hmou)
HMOU hmou; /* mouse handle */
The MouFlushQue function removes any existing mouse events from the mouse
event queue.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hmou Identifies the mouse. The handle must have been created
previously by using the MouOpen function.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
ERROR_MOUSE_NO_DEVICE
Example
This example creates a mouse handle then calls the MouFlushQue function to
remove any events from the existing mouse event queue:
HMOU hmou;
MouOpen(0L, &hmou);
.
.
.
MouFlushQue(hmou);
See Also
MouGetNumQueEl, MouOpen, MouReadEventQue
♦