Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CMenu::GetSubMenu
CMenu                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CMenu* GetSubMenu( int nPos ) const;
 
  Parameter   Description
 
  <nPos>      Specifies the position of the pop-up menu contained in the
              menu. Position values start at 0 for the first menu item.
 
  Remarks
 
  Retrieves the CMenu object of a pop-up menu.
 
  Return Value
 
  A pointer to a CMenu object whose m_hMenu member contains a handle to
  the pop-up menu if a pop-up menu exists at the given position; otherwise
  NULL. If a CMenu object does not exist, then a temporary one is created.
  The CMenu pointer returned should not be stored.
 
  See Also
 
  ::GetSubMenu
 
 
                                     -♦-