CB_SETITEMHEIGHT
wParam = (WPARAM) index; /* item index */
lParam = (LPARAM) (int) height; /* item height */
An application sends a CB_SETITEMHEIGHT message to set the height of list items in a combo box or the height of the edit-control (or static-text) portion of a combo box.
index
Value of wParam. Specifies whether the height of list items or the height of the edit-control (or static-text) portion of the combo box is set.
If the combo box has the CBS_OWNERDRAWVARIABLE style, the index parameter specifies the zero-based index of the list item whose height is to be set; otherwise, index must be zero and the height of all list items will be set.
If index is –1, the height of the edit-control or static-text portion of the combo box is to be set.
height
Value of the low-order word of lParam. Specifies the height, in pixels, of the combo box component identified by index.
The return value is CB_ERR if the index or height is invalid.
The height of the edit-control (or static-text) portion of the combo box is set independently of the height of the list items. An application must ensure that the height of the edit-control (or static-text) portion isn't smaller than the height of a particular list box item.
This example sends a CB_SETITEMHEIGHT message to set the height of list items in a combo box:
LPARAM lrHeight;
SendDlgItemMessage(hdlg, ID_MYCOMBOBOX, CB_SETITEMHEIGHT,
0, lrHeight);