我知道用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;

}
但是我映射到帮助的项,就可以用(非暗的)为什么?