void CMyNoteDlg::OnBnClickedMenu()
{
// TODO: 在此添加控件通知处理程序代码
CPoint point;
ClientToScreen(&point);//point是针对屏幕的坐标,将其转化为针对客户区的
CMenu menu;
menu.LoadMenu(IDR_MENU1);//IDR_MENU1是菜单ID
menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN,point.x+230,point.y+35,this);
}