LB_GETITEMRECT
wParam = (WPARAM) index; /* item index */
lParam = (LPARAM) (RECT FAR*) lprc; /* address of RECT structure */
An application sends an LB_GETITEMRECT message to retrieve the dimensions of the rectangle that bounds an item as it is currently displayed in the list box window.
index
Value of wParam. Specifies the zero-based index of the item.
lprc
Value of lParam. Specifies a long pointer to a RECT structure that receives the client coordinates for the item in the list box. The RECT structure has the following form:
typedef struct tagRECT { /* rc */
int left;
int top;
int right;
int bottom;
} RECT;
The return value is LB_ERR if an error occurs.