Hi everybody, hope everything is doing fine.
Do you know if there is a simple way to calculate the height of cells in listviews?
Thanks Carlo
Sure, send a LVM_GETITEMRECT message (0x100E) to list view. Note, you need at least one item in the list.
WINRECT rc
rc.left = 0 /* LVIR_BOUNDS */
SendMessage(win, 0x100E, 0 /*item index*/, &rc, controlID)
height = rc.bottom - rc.top + 1
It works great!
Thanks so much for the "real-time" answer, I really appreciated.
Carlo