bOk = MTblSetParentRow( hWndTbl, nRow, nParentRow, nOptionFlags )
Sets a row's parent row.
Window Handle: Handle of the table
Number: Row whose parent row you want to set
Number: New parent row. Specify TBL_Error to define that the row has no parent.
Number: Optional flags:
Redraws the table
Boolean: TRUE if successful or FALSE if an error occurs
In this example the parent of a row is removed and the table is redrawn:
Call MTblSetParentRow( hWndTbl, nRow, TBL_Error, MTSPR_REDRAW )
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.
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator