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::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
 
 
                                     -♦-