Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CComboBox::GetItemHeight
CComboBox                                   Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int GetItemHeight( int nIndex ) const;
 
  Parameter   Description
 
  <nIndex>    Specifies the component of the combo box whose height is to
              be retrieved. If the <nIndex> parameter is -1, the height of
              the edit-control (or static-text) portion of the combo box
              is retrieved. If the combo box has the CBS_OWNERDRAWVARIABLE
              style, <nIndex> specifies the zero-based index of the list
              item whose height is to be retrieved. Otherwise, <nIndex>
              should be set to 0.
 
  Remarks
 
  Call the GetItemHeight member function to retrieve the height of list
  items in a combo box.
 
  Return Value
 
  The height, in pixels, of the specified item in a combo box. The return
  value is CB_ERR if an error occurred.
 
  See Also
 
  CComboBox::SetItemHeight, WM_MEASUREITEM, CB_GETITEMHEIGHT
 
 
                                     -♦-