This function is used to get a message and return immediately.
bool peekmessage(EASYXMSG *msg, BYTE filter = -1, bool removemsg = true);
A pointer to an EASYXMSG structure that receives a message.
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.
Specifies whether to remove the message from the queue after processing by peekmessage.
If a message is available, the return value is true.
If no messages are available, the return value is false.
By default, consecutive mouse clicks are recognized as a series of click events. If you want two consecutive mouse clicks to recognize as a double-click event, specify the flag bit EW_DBLCLKS when you create the drawing window.