简单的C#菜单问题 [英] Simple C# Menu Question

查看:63
本文介绍了简单的C#菜单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如果我有HMENU手柄,是否可以创建C#菜单对象?

预先感谢!

解决方案

尽管可以从句柄创建许多.NET框架对象-例如位图和光标,我想知道菜单是否存在等效项类(像"FromHandle"之类的)函数?


否,HMENU当然是指向菜单窗口的非托管指针,并且与.net菜单对象不同. /blockquote>

Hi All,

If I have a HMENU handle, can I create a C# menu object?

Thanks in advance!

解决方案

Many .NET framework objects can be created from handles though - for example bitmaps and cursors, I was wondering if there was an equivalent for the menu class (like a ''FromHandle'') function?


No, a HMENU is of course an unmanaged pointer to the menu window and is not the same as a .net menu object.


这篇关于简单的C#菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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