Jump to content

VM QUERYSELECTEDITEM

From EDM2

This message queries for the currently selected value set item indicated by the values of the usRow and usColumn fields.

Syntax

param1
    ULONG ulReserved; /* Reserved value, should be 0. */

param2
    ULONG ulReserved; /* Reserved value, should be 0. */

returns
    USHORT usRow;    /* Row index. */
    USHORT usColumn; /* Column index. */

Parameters

ulReserved (ULONG) - input
Reserved value, should be 0.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

usRow (USHORT) - returns
Row index of the currently selected value set item. Rows have a value from 1 to the value of the usRowCount field. This value, which is the total number of rows in the value set, is specified in the VSCDATA data structure when the value set control is created.
usColumn (USHORT) - returns
Column index of the currently selected value set item. Columns have a value from 1 to the value of the usColumnCount field. This value, which is the total number of columns in the value set, is specified in the VSCDATA data structure when the value set control is created.

Remarks

The application uses this message to query the index of the currently selected value set item. If 0 is returned, no item is selected.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it other than to return 0.