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

PeekMessage

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the next waiting message present in message queue for the hWnd dialog.

 

Syntax

 

Msg = PeekMessage(hWnd, wParam, lParam)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog you want to get next message

wParam

Variable

No

A numeric existing variable name. This variable will be filled with additional message-specific information

lParam

Variable

No

A numeric existing variable name. This variable will be filled with additional message-specific information

 

Remarks

 

Restrictions

 

See also

 

GetMessage, SendMessage, ClearMessages

 

Examples

 

 

 

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