1
2
3
4
5
m_ctrlListGunInfo.SetExtendedStyle(LVS_EX_FLATSB
|LVS_EX_FULLROWSELECT
|LVS_EX_HEADERDRAGDROP
|LVS_EX_ONECLICKACTIVATE
|LVS_EX_GRIDLINES);

原型

1
2
3
DWORD SetExtendedStyle(
DWORD dwNewStyle
);

Parameters参数
dwNewStyle
A combination of extended styles to be used by the list view control. For a descriptive list of these styles, see the Extended List View Styles topic in the Platform SDK.

         结合扩展样式使用的列表视图控件。描述这些风格的列表,在平台SDK参考扩展列表视图风格主题。

Return Value 返回值
A combination of the previous extended styles used by the list view control.

Remarks 备注
This member function implements the behavior of the Win32 macro, ListView_SetExtendedListViewStyle, as described in the Platform SDK.