Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CWnd::OnInitMenuPopup
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnInitMenuPopup( CMenu*  pPopupMenu, UINT  nIndex,
                                BOOL  bSysMenu  );
 
  Parameter    Description
 
  <pPopupMenu> Specifies the menu object of the pop-up menu. May be
               temporary, and should not be stored for later use.
 
  <nIndex>     Specifies the index of the pop-up menu in the main menu.
 
  <bSysMenu>   TRUE if the pop-up menu is the system menu; otherwise
               FALSE.
 
  Remarks
 
  Called when a pop-up menu is about to become active. This allows an
  application to modify the pop-up menu before it is displayed, without
  changing the entire menu.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_INITMENUPOPUP message.
 
  See Also
 
  CWnd::OnInitMenu, CWnd::Default, WM_INITMENUPOPUP
 
 
                                     -♦-