This topic has not yet been rated - Rate this topic

IShellFolder2::GetDefaultColumnState method

Applies to: desktop apps only

Gets the default state for a specified column.

Syntax

HRESULT GetDefaultColumnState(
  [in]   UINT iColumn,
  [out]  SHCOLSTATEF *pcsFlags
);

Parameters

iColumn [in]

Type: UINT

An integer that specifies the column number.

pcsFlags [out]

Type: SHCOLSTATEF*

A pointer to a value that contains flags that indicate the default column state. This parameter can include a combination of the following flags.

SHCOLSTATE_TYPE_STR

A string.

SHCOLSTATE_TYPE_INT

An integer.

SHCOLSTATE_TYPE_DATE

A date.

SHCOLSTATE_ONBYDEFAULT

Should be shown by default in the Windows Explorer Details view.

SHCOLSTATE_SLOW

Recommends that the folder view extract column information asynchronously, on a background thread, because extracting this information can be time consuming.

SHCOLSTATE_EXTENDED

Provided by a handler, not the folder object.

SHCOLSTATE_SECONDARYUI

Not displayed in the shortcut menu, but listed in the More dialog box.

SHCOLSTATE_HIDDEN

Not displayed in the user interface.

SHCOLSTATE_PREFER_VARCMP

Uses default sorting rather than CompareIDs to get the sort order.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP

Minimum supported server

Windows Server 2003

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ