Udostępnij za pośrednictwem


CMFCToolBarMenuButton::OpenPopupMenu

Called by the framework when the user opens the drop-down menu of a toolbar menu button.

virtual BOOL OpenPopupMenu(
   CWnd* pWnd=NULL 
);

Parameters

  • [in] pWnd
    Specifies the window that receives the drop-down menu commands. It can be NULL only if the toolbar menu button has a parent window.

Return Value

TRUE when aCMFCPopupMenu Class object was created and opened successfully; otherwise FALSE.

Remarks

This function is called by the framework when the user opens a drop-down menu from a toolbar menu button.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarMenuButton Class