CListCtrl::SetExtendedStyle

设置列表视图控件的当前扩展样式。

DWORD SetExtendedStyle(
   DWORD dwNewStyle 
);

参数

  • dwNewStyle
    列表视图控件将使用的扩展样式的组合。 对于声明性列表这些样式,请参见。Windows SDK的 扩展列表视图样式 主题。

返回值

列表视图控件使用以前的扩展样式的组合。

备注

此成员函数实现Win32宏,ListView_SetExtendedListViewStyle的行为,如 Windows SDK所述。

示例

    // Allow the header controls item to be movable by the user.
    m_myListCtrl.SetExtendedStyle
        (m_myListCtrl.GetExtendedStyle()|LVS_EX_HEADERDRAGDROP);

要求

Header: afxcmn.h

请参见

参考

CListCtrl选件类

层次结构图

CListCtrl::CreateEx

CListCtrl::GetExtendedStyle