void CMainFrame::OnRButtonDown(UINT nFlags, CPoint point) 
{
// TODO: Add your message handler code here and/or call default
CMenu mypopmenu;
mypopmenu.LoadMenu(IDR_NEWMENU);
CMenu * pSubMenu = mypopmenu.GetSubMenu(0); CPoint pt;
GetCursorPos(&pt);
pSubMenu->TrackPopupMenu(TPM_RIGHTBUTTON,pt.x,pt.y,this);
pSubMenu->DestroyMenu();

CFrameWnd::OnRButtonDown(nFlags, point);
}
但是程序运行后右键没反应
请哪位兄弟姐妹帮下忙
我是初学者。谢谢先了。