CMenu::MeasureItem

virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );

Parameters

lpMeasureItemStruct

A pointer to a MEASUREITEMSTRUCT structure.

Remarks

Called by the framework when a menu with the 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 menu’s dimensions.

See CWnd::OnMeasureItem for a description of the MEASUREITEMSTRUCT structure.

CMenu OverviewClass MembersHierarchy Chart