MTblSetParentRow
bOk = MTblSetParentRow( hWndTbl, nRow, nParentRow, nOptionFlags )
Sets a row's parent row.
Parameters
hWndTbl
Window Handle: Handle of the table
nRow
Number: Row whose parent row you want to set
nParentRow
Number: New parent row. Specify TBL_Error to define that the row has no parent.
nOptionFlags
Number: Optional flags:
MTSPR_REDRAW |
Redraws the table |
Return
Boolean: TRUE if successful or FALSE if an error occurs
Example
In this example the parent of a row is removed and the table is redrawn:
Call MTblSetParentRow( hWndTbl, nRow, TBL_Error, MTSPR_REDRAW )
Remarks
If the new parent row is expanded or TBL_Error, the ROW_Hidden flag of the row is removed. If the new parent row is not expanded, the row is collapsed and the ROW_Hidden flag is set.
If the row is the first child row of the parent row, the row flag MTBL_ROW_CAN_EXPAND is set for the parent row.
See also
Tree view
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator