VM SELECTITEM
Appearance
This message selects the value set item indicated by the values of the usRow and usColumn parameters. When a new item is selected, the previously selected item is deselected.
Syntax
param1 USHORT usRow; /* Row index. */ USHORT usColumn; /* Column index. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- usRow (USHORT) - input
- Row index of the value set item to select. 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) - input
- Column index of the value set item to select. 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.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Item was successfully selected.
- FALSE: An error occurred. The WinGetLastError function may return the following errors:
- PMERR_INVALID_PARAMETERS
- PMERR_PARAMETER_OUT_OF_RANGE
Remarks
The application uses this message to select the specified value set item.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return FALSE.