IonicWind Software

IWBasic => GUI Central => Topic started by: dossic on September 03, 2008, 09:24:02 AM

Title: cell height in listview
Post by: dossic on September 03, 2008, 09:24:02 AM
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
Title: Re: cell height in listview
Post by: sapero on September 03, 2008, 09:56:20 AM
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
Title: Re: cell height in listview
Post by: dossic on September 03, 2008, 02:54:19 PM
It works great!

Thanks so much for the "real-time" answer, I really appreciated.

Carlo