IPropertyDescription::GetDefaultColumnWidth method (propsys.h)

Gets the default column width of the property in a list view.

Syntax

HRESULT GetDefaultColumnWidth(
  [out] UINT *pcxChars
);

Parameters

[out] pcxChars

Type: DWORD*

A pointer to the column width value, in characters.

Return value

Type: HRESULT

Always returns S_OK.

Remarks

The values retrieved by this method are originally set through the defaultColumnWidth attribute of the displayInfo element in the property's .propdesc file.

If no value is set in the .propdesc file or if the method fails, the value pointed to by pcxChars is 20 characters.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header propsys.h

See also

IPropertyDescription

Property Description Schema