IColumnManager::GetColumnCount method

Gets the column count for either the visible columns or the complete set of columns.

Syntax

HRESULT GetColumnCount(
  CM_ENUM_FLAGS dwFlags,
  UINT          *puCount
);

Parameters

dwFlags

Type: CM_ENUM_FLAGS

A value from the CM_ENUM_FLAGS enumeration that specifies whether to show only visible columns or all columns regardless of visibility.

puCount

Type: UINT*

Contains a pointer to the column count.

Return Value

Type: HRESULT

Always returns S_OK.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.0 or later)