Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Retrieves the width, in pixels, of the column.
Syntax
HRESULT GetColumnWidth(
[in] int nCol,
[out] int *pWidth
);
Parameters
[in] nCol
A zero-based index of the column from which the width is to be retrieved.
[out] pWidth
A pointer to width, in pixels, of the column. This parameter must not be NULL.
Return value
This method can return one of these values.
Remarks
This method can be called successfully even if items are already in the list.
If the column is currently hidden, GetColumnWidth returns 0 (zero) as the column width. However, because a column can have a (0) zero width without being hidden, a return value of (0) zero does not mean that the column is hidden. Therefore, the snap-in should call IColumnData::GetColumnConfigData to identify which columns are hidden.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | mmc.h |
| DLL | Mmcndmgr.dll |