Positioning of a menu item image (hbmpItem of a MENUITEMINFO) in a context menu

巧了我就是萌 提交于 2019-12-02 04:27:08
darbid

I have two answers to this problem.

I indicated above that the issue existed on an menu in Outlook 2010 but not in Outlook 2007. This is not true. These office versions are of course on different computers and it was a display setting in windows that was the cause of the problem. The above menu is what you get when you have the setting "Use Visual Styles on Windows and buttons" in Performance Options > Visual Effects turned off (Win 7). If you enable this setting then the menus look and especially act very differently.

But what if a user disables this setting how can you deal with it (Not sure if this is relevant for Win10).

You need to set the menu style through the use of the Menuinfo in particular you need to set the flag MNS_NOCHECK. Then the space is gone as the menu no longer is expecting the check marks.

This solution can also be seen here in another stackoverflow answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!