DIALOG SEND

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Commands >

DIALOG SEND

 

Description

 

Send a message to a dialog.

 

Syntax

 

DIALOG SEND hwnd, Msg, wParam, lParam [ TO Result]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog you want to send a message to

Msg

Number

No

The message you want to send to the dialog

wParam

Number

No

First parameter. This value is Msg dependant

lParam

Number

No

Second parameter. This value is Msg dependant

Result

Variable

Yes

If specified, this variable will contain the return value from the message.

 

Remarks

 

By default, thinBasic passes these parameters BYVAL.

If the target dialog is expected to return or alter the values passed in the wParam and lParam parameters, pass them using VARPTR or the return values will be discarded.

For example:

 

DIALOG SEND CBHNDL%WM_USER + 999VARPTR(Param1&), VARPTR(Param2&)

 

Restrictions

 

See also

 

Examples