void CMainFrame::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu *p=menu.GetSubMenu(0);
ClientToScreen(&point);
p->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,point.x,point.y,this); CFrameWnd::OnRButtonDown(nFlags, point);
}
新建了一个菜单资源,,然后创建了上面的消息响应。。为什么点击鼠标右键的时候不弹出菜单啊
{
// TODO: Add your message handler code here and/or call default
CMenu menu;
menu.LoadMenu(IDR_MENU1);
CMenu *p=menu.GetSubMenu(0);
ClientToScreen(&point);
p->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,point.x,point.y,this); CFrameWnd::OnRButtonDown(nFlags, point);
}
新建了一个菜单资源,,然后创建了上面的消息响应。。为什么点击鼠标右键的时候不弹出菜单啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货