MMC_VISIBLE_COLUMNS structure (mmc.h)

The MMC_VISIBLE_COLUMNS structure is introduced in MMC 1.2.

The MMC_VISIBLE_COLUMNS structure is used by MMC with the MMCN_COLUMNS_CHANGED notification to inform the snap-in which columns in a column set are visible.

Syntax

typedef struct _MMC_VISIBLE_COLUMNS {
  INT nVisibleColumns;
  INT rgVisibleCols[1];
} MMC_VISIBLE_COLUMNS;

Members

nVisibleColumns

The number of visible columns in the column set.

rgVisibleCols[1]

A variable-length array in which each member contains the zero-based number of a visible column. The ordering of the columns in the array corresponds to the order of the columns as they appear in the list view. The nVisibleColumns member gives the number of elements in the list.

Remarks

The value of rgVisibleCols[0] is always 0 (zero), indicating that the first visible column in the list view is always the zero index-valued column, which must always be the first column and must always be visible. Furthermore, MMC does not allow the user to change the position of the first column.

The order of visible columns may be different than the order of insertion by the snap-in because the user may have rearranged the columns by dragging and dropping their headers.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header mmc.h

See also

MMCN_COLUMNS_CHANGED

Using Column Persistence