CFrameWndEx::OnSetMenu

Called by the framework to replace the frame window menu.

afx_msg LRESULT OnSetMenu(
   WPARAM wp,
   LPARAM lp
);
BOOL OnSetMenu(
   HMENU hmenu
);

Parameters

  • [in] wp
    Handle to the new frame window menu.

  • [in] lp
    Handle to the new window menu.

  • [in] hmenu
    Handle to the new frame window menu.

Return Value

LRESULT is the result from calling the default window procedure.

BOOL is TRUE if the event was handled; otherwise, FALSE.

Requirements

Header: afxframewndex.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CFrameWndEx Class