MFC
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

CListCtrl::GetColumnWidth

Retrieves the width of a column in report view or list view.

int GetColumnWidth(
   int nCol 
) const;
nCol

Specifies the index of the column whose width is to be retrieved.

The width, in pixels, of the column specified by nCol.


		// Increase the column width of the second column by 20.
		int nWidth = m_myListCtrl.GetColumnWidth(1);
		m_myListCtrl.SetColumnWidth(1, 20 + nWidth);


Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.