void CFloatWnd::OnRButtonUp(UINT nFlags, CPoint point) 
{
// TODO: Add your message handler code here and/or call default
CMenu m_Right;
m_Right.LoadMenu(IDR_MENU1);
CMenu *pSub = m_Right.GetSubMenu(0);
ClientToScreen(&point);
pSub->TrackPopupMenu(TPM_LEFTALIGN,point.x,point.y,this,NULL);

CDialog::OnRButtonUp(nFlags, point);
}


其中,IDR_MENU1是一个普通的菜单。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-08-31
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-10-20
  • 2022-02-23
  • 2021-05-20
相关资源
相似解决方案