int GetColumnWidth( int nCol ) const;
Return Value
The width, in pixels, of the column specified by nCol.
Parameters
nCol
Specifies the index of the column whose width is to be retrieved.
Remarks
Retrieves the width of a column in report view or list view.
Example
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// Double the column width of the first column.
int nWidth = pmyListCtrl->GetColumnWidth(0);
pmyListCtrl->SetColumnWidth(0, 2*nWidth);