我知道用oncontextMenu()函数,但是我的菜单是灰的,不能用,为什么?
我的菜单如下:
void COpticsCtrl::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu* pMenu=menu.GetSubMenu(0); pMenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_LEFTBUTTON|
TPM_RIGHTBUTTON,point.x,point.y,AfxGetMainWnd());
return;
}
但是我映射到帮助的项,就可以用(非暗的)为什么?
急
我的菜单如下:
void COpticsCtrl::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu* pMenu=menu.GetSubMenu(0); pMenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_LEFTBUTTON|
TPM_RIGHTBUTTON,point.x,point.y,AfxGetMainWnd());
return;
}
但是我映射到帮助的项,就可以用(非暗的)为什么?
急
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货