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

PeekMessage

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

 

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