ItEv_SetTableColumnPermutation
Use
Sets the order of table columns in a CTRL_TABLE control, by specifying the new position of each of the columns as values in an array.
Indices and values for the pCols array are both zero-based.
For example, specifying pCols[0] = 2 means that the first column now goes to the third position in the table.
Syntax
DWORD DLEX ItEv_SetTableColumnPermutation(PIT_EVENT pEvt, ITCCTRL pCtrl, int* pCols, int nCols);
Parameters
pEvt |
Pointer to the IT_EVENT structure |
pCtrl |
The table control whose columns should be switched. Refer to Specifying control |
pCols |
Array of integers specifying new table column positions |
nCols |
Length of pCols array |
Return Value
Returns TRUE on success, FALSE on error.
See Also
ItEv_FindControl.