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.
精彩评论