This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Meta function automatically created by thinBasic engine and valid only inside Callback Functions.
This meta function is valid only inside a Callback Function,
It returns the value of the message sent by the caller.
Syntax
msg = CBMSG
alias
msg = Callback_Message
Returns
Number.
Remarks
Each type of message sent to your Callback Function has a unique numeric value. CBMSG will return the actual numeric message value of the message being processed.
The definitions of the numeric values in other functions (CBLPARAM, CBWPARAM, CBCTL, etc) can only be ascertained once CBMSG is identified. Therefore, Callback Functions usually test the value of CBMSG first.
In the generally case, a dialog Callback Function should return %TRUE (non-zero) for all %WM_COMMAND messages it processes.
However, this rule cannot be equally applied to other types of messages, since the return value will be message-specific.
Restrictions
This function is only valid inside a Callback Function.
See also
Examples