如何处理CListCtrl中的属性键?

发布于 2024-07-27 15:41:37 字数 65 浏览 5 评论 0原文

我想处理 MFC 中 CListCtrl 中的属性按键,并显示右键单击已显示的上下文菜单。 我怎样才能做到这一点?

I want to handle the properties key press in CListCtrl in MFC and show a context menu which is already shown with right clicking. How can I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏日落 2024-08-03 15:41:38

“属性”键是“菜单”键。
如果您已经实现了上下文菜单,那么当您按“属性”键时,CListCtrl 控件必须具有焦点。

或者,主窗口可以监视关键消息并通知控件。

The "properties" key is the "Menu" key.
If you already implemented a context menu then the CListCtrl control must have the focus when you press the "properties" key.

Or alternatively, the main window can watch key messages and notify the control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文