CBLPARAM function

Purpose

In a Callback Function, return the numeric value of the lParam& parameter of the message sent by the caller.

CBLPARAM has been superceded by the CB Callback functions, although CBLPARAM remains supported for a limited period.  Existing code should be converted to the new syntax as soon as possible.

Syntax

lParam& = CBLPARAM

Remarks

When Windows sends a message to the callback, the lParam& value contains different values depending on the value returned by wMsg&. In other words, CBLPARAM returns a message-dependent value. See Dynamic Dialog Tools for more information on callbacks and messages.

Restrictions 

This function is only valid inside a Callback Function.

See also

Dynamic Dialog Tools, CB Callback functions

Example

CALLBACK FUNCTION DlgCallback() AS LONG

  SELECT CASE CBMSG

    CASE %WM_INITDIALOG

      InitParam = CBLPARAM

    CASE %WM_USER

      x& = CBLPARAM ' user defined value

      ...

  END SELECT

END FUNCTION