Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CComboBox::SetItemHeight
CComboBox                                   Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int SetItemHeight( int nIndex, UINT cyItemHeight );
 
  Parameter      Description
 
  <nIndex>       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,
                 <nIndex> specifies the zero-based index of the list item
                 whose height is to be set; otherwise, <nIndex> must be 0
                 and the height of all list items will be set.
 
                 If <nIndex> is -1, the height of the edit-control or
                 static-text portion of the combo box is to be set.
 
  <cyItemHeight> Specifies the height, in pixels, of the combo box
                 component identified by <nIndex>.
 
  Remarks
 
  Call the SetItemHeight member function 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.
 
  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.
 
  Return Value
 
  CB_ERR if the index or height is invalid; otherwise, 0
 
  See Also
 
  CComboBox::GetItemHeight, WM_MEASUREITEM, CB_SETITEMHEIGHT
 
 
                                     -♦-