加载的弹出式菜单不显示
void CPj1117001View::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CView::OnRButtonDown(nFlags, point);
CMenu popMenu;
popMenu.LoadMenu(IDR_MENU1);//确实已经加入 CMenu *p=popMenu.GetSubMenu(0);
CPoint ct;
GetCursorPos(&ct);
p->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,ct.x,ct.y,0); //为什么不显示?}