MenuItem上的超链接 [英] Hyperlinks on MenuItem

查看:227
本文介绍了MenuItem上的超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一些菜单项是超链接。

I want some of the menu items to be hyperlinks.

如何通过MFC实现它。

How to achieve it through MFC.

提前致谢。

推荐答案

好吧win32菜单不是你可以把控件放在上面的窗口..但是CMFCMenuButton是。您可以从  CMFCMenuButton类派生,并将文本颜色更改为蓝色,将字体更改为下划线。但是,如果所有字符
都加下划线,你如何显示菜单加速键?
well a win32 menu is not a window that u can put controls on... but CMFCMenuButton is. You can derive from the CMFCMenuButton class and change the text color to blue and font to underline. But then how do you show the menu accelerate keys if all characters are underlined?


这篇关于MenuItem上的超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆