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::SetItemHeight
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int SetItemHeight( int nIndex, UINT cyItemHeight );
 
  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.
 
  <cyItemHeight> Specifies the height, in pixels, of the item.
 
  Remarks
 
  An application calls the SetItemHeight member function to set the height
  of items in a list box. If the list box has the LBS_OWNERDRAWVARIABLE
  style, this function sets the height of the item specified by <nIndex>.
  Otherwise, this function sets the height of all items in the list box.
 
  Return Value
 
  LB_ERR if the index or height is invalid.
 
  See Also
 
  CListBox::GetItemHeight, LB_SETITEMHEIGHT
 
 
                                     -♦-