我应用了ListView表,表头如下:
IP | NAME | STATUS
表头3项,没两项之间有一竖线,点它可以拉动每一项的长度,
比如拉动IP与NAME之间的长度,可左右移动,就增大或缩小了IP栏的长度,
但是我现在想固定它,不让别人拉动,有这样的扩展属性添加么,或者自己怎么增加代码?
请各位高手帮给点方法,谢了!!
...全文
6647打赏收藏
请教::ListView表表头怎样可以固定,不能拉动?
我应用了ListView表,表头如下: IP | NAME | STATUS 表头3项,没两项之间有一竖线,点它可以拉动每一项的长度, 比如拉动IP与NAME之间的长度,可左右移动,就增大或缩小了IP栏的长度, 但是我现在想固定它,不让别人拉动,有这样的扩展属性添加么,或者自己怎么增加代码? 请各位高手帮给点方法,谢了!!
LVS_EX_HEADERDRAGDROP
Version 4.70. Enables drag-and-drop reordering of columns in a list-view control. This style is only available to list-view controls that use the LVS_REPORT style.
HDN_BEGINTRACKW
HDN_BEGINTRACKA
是移动表头的状态
Notifies a header control's parent window that the user has begun dragging a divider in the control (that is, the user has pressed the left mouse button while the mouse cursor is on a divider in the header control). This notification message is sent in the form of a WM_NOTIFY message.