MTM_CollapseRow

This message is sent to collapse a row.

Parameters
wParam
Optional flags:

MTCR_REDRAW

Redraws the table

MTCR_BY_USER

The user collapses the row through a mouse or keyboard action

lParam
Number of the row to collapse

Return
Return MTBL_NODEFAULTACTION to prevent row collapsing

Remarks
M!Table sends this message in the following cases:

  • The user clicks into the node of a row that has the flags MTBL_ROW_CANEXPAND and MTBL_ROW_ISEXPANDED
  • The user double clicks a row that has the flags MTBL_ROW_CANEXPAND and MTBL_ROW_ISEXPANDED and the table flag MTBL_FLAG_EXPAND_ROW_ON_DBLCLK is set
  • The user presses [-] when the focus row has the flags MTBL_ROW_CANEXPAND and MTBL_ROW_ISEXPANDED
  • A call to MTblCollapseRow

See also
Tree view

Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad