15,979
社区成员
发帖
与我相关
我的任务
分享
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu* pMenu = menu.GetSubMenu(0);
int nRet = pMenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_RETURNCMD, point.x, point.y, this);
CString str;
str.Format(_T("%d"), nRet);
AfxMessageBox(str);
menu.Detach();