flushmessage

This function is used to empty the message buffer.

void flushmessage(BYTE filter = -1);

Parameters

filter

Specify the category of messages to be cleared, the default is -1 to clear all categories. The following values ​​or combinations of values ​​can be used to clear messages of a specified category.

Category identifier Description
EM_MOUSE Mouse message
EM_KEY Key message
EM_CHAR Character message
EM_WINDOW Window message

Return Value

None

Examples

None