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::Attach
CMenu                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL Attach( HMENU hMenu);
 
  Parameter   Description
 
  <hMenu>     Specifies a handle to a Windows menu.
 
  Remarks
 
  Attaches an existing Windows menu to a CMenu object. This function
  should not be called if a menu is already attached to the CMenu object.
  The menu handle is stored in the m_hMenu data member.
 
  Return Value
 
  TRUE if the operation was successful; otherwise FALSE.
 
  See Also
 
  CMenu::Detach, CMenu::CMenu
 
 
                                     -♦-