IShellFolder2::GetDefaultColumnState method (shobjidl_core.h)
Gets the default state for a specified column.
Syntax
HRESULT GetDefaultColumnState(
[in] UINT iColumn,
[out] SHCOLSTATEF *pcsFlags
);
Parameters
[in] iColumn
Type: UINT
An integer that specifies the column number.
[out] pcsFlags
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
DLL | Shell32.dll (version 5.0 or later) |