How do know what menu item was selected when you have a popup menu? I made a msg map with the menu ID but it does not seem to catch it.
CMenu mMenu; // Graph popup menu
// Get the menu for the popup from the resource file
mMenu.LoadMenu( IDR_GRAPHPOPUP );
hMenu = mMenu.GetSafeHmenu();
// Convert the mouse point to screen coordinates since that is what
// TrackPopup expects.
::ClientToScreen( GetSafeHwnd(), (LPPOINT)&point );
// Draw and track the "floating" popup
TrackPopupMenuEx( hMenu, TPM_VERTICAL | TPM_HORIZONTAL, point.x,
point.y, GetSafeHwnd(), NULL );
// Destroy the menu since were are done with it.