http://bugs.winehq.org/show_bug.cgi?id=5231
Summary: Cannot query menus out of process Product: Wine Version: CVS Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-user AssignedTo: wine-bugs@winehq.org ReportedBy: tkho@ucla.edu CC: dank@kegel.com
GetMenuItemCount() fails to return the proper menu count when you pass a HMENU for a menu that's associated with a window in a different process. Attached is a minimal test case where behavior when querying a menu in-process and out-of- process can be compared.
Run as: menu_iteration_test.exe <-- out of process menu_iteration_test.exe inprocess <-- in process
On Windows, both result in printing the menu items. In Wine, the first one gives a menu item count of -1.