0

我知道通过使用listview_getheader你可以从列表视图中获取标题信息,但是设置标题有什么宏吗?

我想做的是这个

|     Title     |
|item 1 |subitem|
|item 2 |subitem|
|item 3 |subitem|
|item 4 |subitem|
|item 5 |subitem|
|item 6 |subitem|
4

1 回答 1

1

ListView_GetHeader() gets the handle for the header.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb761290(v=vs.85).aspx

Gets the handle to the header control used by a list-view control. You can use this macro or send the LVM_GETHEADER message explicitly.

With the handle, you should be able to get or set the associated text with SetWindowText().

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633546(v=vs.85).aspx

Changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed.

于 2013-06-22T03:50:19.013 回答