Navigation:  ThinBASIC Modules > UI (User Interface) > Events > Events in message loops >

ClearMessages

Previous pageReturn to chapter overviewNext page

 

Deprecated function

This function has been deprecated in favor of new UI callback functionalities.
Do not use this function anymore. This function could be removed in future thinBasic versions.

 

Description

 

Clear the message queue for a given window handle.

 

Syntax

 

n = ClearMessages(hWnd)

 

Returns

 

Number. The number of messages removed from the queue

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog you want to clear the message queue

 

Remarks

 

Restrictions

 

See also

 

PeekMessage, SendMessage, GetMessage

 

Examples