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.
CListBox::GetItemHeight
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int GetItemHeight( int nIndex ) const;
 
  Parameter   Description
 
  <nIndex>    Specifies the zero-based index of the item in the list box.
              This parameter is used only if the list box has the
              LBS_OWNERDRAWVARIABLE style; otherwise, it should be set to
              0.
 
  Remarks
 
  An application calls the GetItemHeight member function to determine the
  height of items in a list box.
 
  Return Value
 
  The height, in pixels, of the items in the list box. If the list box has
  the LBS_OWNERDRAWVARIABLE style, the return value is the height of the
  item specified by <nIndex>. If an error occurs, the return value is
  LB_ERR.
 
  See Also
 
  LB_GETITEMHEIGHT, CListBox::SetItemHeight
 
 
                                     -♦-