Navigation: thinBasic Modules > UI (User Interface) > DIALOGSs > DIALOG POST |
|
Description
Place a message in the message queue of the specified dialog.
The message is processed by the dialog at a later time, when it reads the message from the queue.
Syntax
DIALOG POST hwnd, Msg, wParam, lParam
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 |
Remarks
DIALOG POST is different to the DIALOG SEND, which forces the dialog/control to process the message immediately before returning.
DIALOG POST is an asynchronous operation.
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 POST CBHNDL, %WM_USER + 999, VARPTR(Param1&), VARPTR(Param2&)
Restrictions
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |