CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu* pMenu= menu.GetSubMenu(0);
CPoint pt;
GetCursorPos(&pt);
pMenu->TrackPopupMenu(TPM_LEFTALIGN, pt.x, pt.y, this);
menu.Detach();
menu.DestroyMenu();
在光标处弹出子菜单
最新推荐文章于 2021-04-07 21:29:16 发布
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu* pMenu= menu.GetSubMenu(0);
CPoint pt;
GetCursorPos(&pt);
pMenu->TrackPopupMenu(TPM_LEFTALIGN, pt.x, pt.y, this);
menu.Detach();
menu.DestroyMenu();