CMFCPopupMenu::SetMaxWidth

Set the maximum width for the pop-up menu.

void SetMaxWidth(
   int iMaxWidth 
);

Parameters

  • [in] iMaxWidth
    The maximum width for the pop-up menu, in pixels.

Remarks

If the text associated with a menu command will not fit in the maximum width, it is truncated and the part that does not fit is replaced by three dots.

Requirements

Header: afxpopupmenu.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCPopupMenu Class