菜单项的图标 [英] The Icons For Menu Items
问题描述
您好
哪种方式更适合设置菜单项的图标:
1-制作所有者绘制菜单
2-使用 hbmpItem 成员 MENUITEMINFO 结构
我认为在以前的Windows Vista中,系统没有正确显示32 菜单的位图标,如果我们使用方式#2
此外,如果我们使用方式#2,我们需要销毁位图句柄或系统吗?
1 - 所有者抽奖需要比#2更多的工作。
2 - 应用程序负责销毁位图。 请参阅
SetMenuItemBitmaps功能,其中显示"何时菜单被破坏,这些位图不会被破坏;由应用程序来销毁它们。 "
Hi
Which way is better to set icons for the menu items:
1- Make owner draw menu
2- Using hbmpItem member of MENUITEMINFO structure
I think in prior Windows Vista, the system does not show correctly 32 bit icons for menus if we use way #2
Also if we use way #2 we need to destroy the bitmap handle or system do it?
1 - Owner draw requires more work than #2.
2 - The application is responsible for destroying the bitmap. See SetMenuItemBitmaps function where it says "When the menu is destroyed, these bitmaps are not destroyed; it is up to the application to destroy them. "
这篇关于菜单项的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!