PeekMouseMsg

This function is used to get a mouse message and return immediately.

bool PeekMouseMsg(MOUSEMSG *pMsg, bool bRemoveMsg);

Parameters

pMsg

A pointer to a MOUSEMSG structure that receives mouse message information.

bRemoveMsg

Specifies whether to remove the mouse message from the queue after processing by PeekMouseMsg.

Return Value

If a mouse message is available, the return value is true.

If no mouse messages are available, the return value is false.

Remarks

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.

This function is obsolete and is declared only in graphics.h. It is recommended that use peekmessage instead of the function.

Examples

None

(贡献者:Krissi  编辑