How can I set the row height of a custom drawn list view? Or does it require an owner drawn list view?
It depends on the mode you are using it in.
In some modes, you can use the
In
LVM_SETITEMHEIGHT
message.
others
some modes, the item height is dictated by the height of an associated ImageList, if any, followed by the height of the assigned Font.
Update : turns out that LVM_SETITEMHEIGHT
is part of the MiniGUI library , not part of the Win32 API. In that case, you would have to use the LVS_OWNERDRAWFIXED
window style and then subclass the ListView to handle the WM_MEASUREITEM
message.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.