CBLPARAM function

Purpose

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

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, CBCTL, CBCTLMSG, CBHNDL, CBMSG, CBWPARAM

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