http://bugs.winehq.org/show_bug.cgi?id=12540
--- Comment #17 from Igor Tarasov tarasov.igor@gmail.com 2008-05-21 16:14:21 --- Created an attachment (id=13224) --> (http://bugs.winehq.org/attachment.cgi?id=13224) Test application
I've contacted developers and they've told that I need to write tests in order to make this patch go into wine. Umm... I am not able to do this, since I have no idea of how to do that.
But I was able to manage to write this small application. It allows you to apply MNS_NOTIFYBYPOS style to various menus (throug settings menu) - to top menu, to first and second. Also, you may click menu items and see what message is being dispatched.
You'll notice, that if MNS_NOTIFYBYPOS is applied to topmenu, all menus and submenus would return WM_MENUCOMMAND. But If MNS_NOTIFYBYPOS is not applied to top menu and is applied to some menu having submenus, submenus won't be affected by this.
Currently, wine ignores topmenu dwStyle value. But my patch works exactly as it should - ideally copying native comctl32.dll behaviour. I don't know of any other tests I could write.
I would like to ask wine developers not to ignore this message.