c++怎么设置右键弹出框在listbox范围
1个回答
展开全部
CMenu popupMenu;
popupMenu.LoadMenu(IDR_MENU1);
CMenu *pPopupMenu = popupMenu.GetSubMenu(1);
CPoint posMouse;
GetCursorPos(&posMouse);
pPopupMenu->TrackPopupMenu(0, posMouse.x, posMouse.y, this);
*pResult = 0;
///////////////////// TrackPopupMenu 这个函数
popupMenu.LoadMenu(IDR_MENU1);
CMenu *pPopupMenu = popupMenu.GetSubMenu(1);
CPoint posMouse;
GetCursorPos(&posMouse);
pPopupMenu->TrackPopupMenu(0, posMouse.x, posMouse.y, this);
*pResult = 0;
///////////////////// TrackPopupMenu 这个函数
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询