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

ClearMessages

Previous pageReturn to chapter overviewNext page

 

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

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com