CListCtrl::GetColumnWidth

检索列的宽度在报表视图的或列表视图。

int GetColumnWidth( 
   int nCol  
) const;

参数

  • nCol
    指定宽度将检索列的索引。

返回值

宽度,以像素,列指定 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

请参见

参考

CListCtrl Class

层次结构图

CListCtrl::SetColumnWidth

CListCtrl::GetColumn