Compartilhar via


CMFCPopupMenu::GetMessageWnd

Returns a pointer to the window where the framework routes the pop-up menu messages.

CWnd* GetMessageWnd() const;

Return Value

A pointer to the window that receives the pop-up menu messages; NULL if there is no window.

Remarks

When you use the method CMFCPopupMenu::Create to create a pop-up menu, you specify what window receives the menu messages.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart

CMFCPopupMenu::Create