• mfc 如何使弹出菜单在顶层窗口之上?
  • 其它
    1.00元

程序主窗口需要一直置顶:

SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

窗口还需要能够弹出右键菜单,在 OnContextMenu函数中的语句:

theApp.GetContextMenuManager()->ShowPopupMenu(IDR_POPUP_RUN, point.x, point.y, pWnd, TRUE);

运行发现弹出菜单被窗口遮挡了,如何使菜单显示在窗口之上?谢谢!


  • Caroline    2020-01-07 14:23:47
  • 阅读 957    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信