Share via


IHeaderCtrl2::SetColumnText method

The IHeaderCtrl2::SetColumnText method sets the text of the title in a specific column.

Syntax

HRESULT SetColumnText(
  [in] int     nCol,
  [in] LPCWSTR title
);

Parameters

  • nCol [in]
    A zero-based index that specifies the location of the column.

  • title [in]
    A pointer to the string that represents the title of the column being inserted. This string can have a maximum length of MAX_PATH characters.

Return value

This method can return one of these values.

  • S_OK
    The title text was successfully set.

  • E_UNEXPECTED
    The current result view is not the console-provided default view.

  • E_INVALIDARG
    The title parameter is NULL or empty (""), or nCol is invalid.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IHeaderCtrl2