CMFCPopupMenu::Create
Visual Studio 2008
Creates a pop-up menu and attaches it to a CMFCPopupMenu object.
virtual BOOL Create( CWnd* pWndParent, int x, int y, HMENU hMenu, BOOL bLocked = FALSE, BOOL bOwnMessage = FALSE );
The following example demonstrates how to use the Create method of the CMFCPopuMenu class. This code snippet is part of the CustomPages Sample: MFC Toolbar Customization Dialog Application.
CMFCPopupMenu* pPopupMenu = new CMFCPopupMenu; // CPoint point // CMenu* pPopup // The this pointer points to CMainFrame class which extends the CFrameWnd class. pPopupMenu->Create (this, point.x, point.y, pPopup->Detach ());