virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );
Parameters
lpMeasureItemStruct
A long pointer to a MEASUREITEMSTRUCT structure.
Remarks
Called by the framework when a list box with an owner-draw style is created.
By default, this member function does nothing. Override this member function and fill in the MEASUREITEMSTRUCT structure to inform Windows of the list-box dimensions. If the list box is created with the LBS_OWNERDRAWVARIABLE style, the framework calls this member function for each item in the list box. Otherwise, this member is called only once.
For further information about using the LBS_OWNERDRAWFIXED style in an owner-draw list box created with the SubclassDlgItem member function of CWnd, see the discussion in Technical Note 14.
See CWnd::OnMeasureItem for a description of the MEASUREITEMSTRUCT structure.
CListBox Overview | Class Members | Hierarchy Chart
See Also CListBox::CompareItem, CWnd::OnMeasureItem, CListBox::DrawItem, CListBox::DeleteItem