LB_GETITEMHEIGHT
wParam = (WPARAM) index; /* item index */
lParam = 0L; /* not used, must be zero */
An application sends an LB_GETITEMHEIGHT message to determine the height of items in a list box.
index
Value of wParam. Specifies the zero-based index of the item in the list box. This parameter is used only if the list box has the LBS_OWNERDRAWVARIABLE style; otherwise, it should be set to zero.
The return value is the height, in pixels, of the items in the list box. The return value is the height of the item specified by the index parameter if the list box has the LBS_OWNERDRAWVARIABLE style. The return value is LB_ERR if an error occurs.
This example sends LB_GETITEMHEIGHT to retrieve the height of the items in a list box:
LRESULT lrHeight;
lrHeight = SendDlgItemMessage(hdlg, ID_MYLISTBOX,
LB_GETITEMHEIGHT, 0, 0L);