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 numeric ID value of the sending the callback message.
Syntax
id = CBCTL
alias
id = Callback_Control
Returns
Number.
Remarks
When a user clicks on a button, types into a text box, or generally interacts with any control in a dialog, Windows sends a message to the callback for the control (or the dialog if the control does not have a callback). CBCTL returns the ID number as assigned to the control with the CONTROL ADD statement.
CBCTL will return the ID of a control if CBMSG = %WM_COMMAND. For other values of CBMSG, CBCTL will return message-dependent values.
Restrictions
This function is only valid inside a Callback Function.
See also
Examples