http://bugs.winehq.org/show_bug.cgi?id=12119
Summary: Dialog with enu does not display the menu Product: Wine Version: 0.9.56. Platform: PC URL: http://www.jtagtest.com OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: martin@hinner.info
We have a dialog that does this in CDlg::OnInitDialog():
... CMenu menu;
menu.LoadMenu(IDR_...); SetMenu(&menu); ...
on Windows you can work with the menu without any problems, under wine menu is not even displayed (but space is assigned and this space is never refreshed/cleared). I can provide both executable and screenshots, but I think it's easier to write a test app.
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #1 from Martin Hinner martin@hinner.info 2008-03-19 16:14:10 --- Created an attachment (id=11504) --> (http://bugs.winehq.org/attachment.cgi?id=11504) Linux screenshot
XUbuntu i386 7.10
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #2 from Lei Zhang thestig@google.com 2008-03-19 20:30:39 --- Can you write a simple test program for this and provide the source if possible?
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #3 from Martin Hinner martin@hinner.info 2008-03-20 04:45:25 --- Created an attachment (id=11509) --> (http://bugs.winehq.org/attachment.cgi?id=11509) Stripped down MFC test app w/ source code
http://bugs.winehq.org/show_bug.cgi?id=12119
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download, source
--- Comment #4 from Lei Zhang thestig@google.com 2008-03-20 10:50:43 --- Thanks for the test app.
http://bugs.winehq.org/show_bug.cgi?id=12119
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
--- Comment #5 from Lei Zhang thestig@google.com 2008-03-20 11:11:57 --- With WINEDEBUG=+menu, when I click on the blank space, I get:
trace:menu:GetMenu for 0x10028 returning 0xf0 warn:menu:MENU_GetMenu invalid menu handle=0xf0, ptr=0x450b78, magic=10
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #6 from Lei Zhang thestig@google.com 2008-03-20 11:22:57 --- Created an attachment (id=11513) --> (http://bugs.winehq.org/attachment.cgi?id=11513) +menu trace and backtrace to see who is calling DestroyMenu
Someone is calling DestroyMenu on handle 0xf0, so I added an assert(0) in DestroyMenu() to see who is doing that.
http://bugs.winehq.org/show_bug.cgi?id=12119
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
http://bugs.winehq.org/show_bug.cgi?id=12119
Skizmo skizmo@home.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |skizmo@home.nl
--- Comment #7 from Skizmo skizmo@home.nl 2008-09-23 14:13:43 --- Same problem here. Created the same like martin hinner, and I noticed that, the first draw of the window there was a garbled menubar, and after a user-resize the menu was totally gone.
http://bugs.winehq.org/show_bug.cgi?id=12119
Martin Hinner martin@hinner.info changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Martin Hinner martin@hinner.info 2009-02-13 17:10:39 --- I have just tested it on latest Ubuntu (wine 1.0.1) and it works fine, so bug is fixed.
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2009-02-13 17:19:29 --- (In reply to comment #8)
I have just tested it on latest Ubuntu (wine 1.0.1) and it works fine, so bug is fixed.
That's good. But could you test it with today 1.1.15 to confirm there's no regressions in that problem with current version.
http://bugs.winehq.org/show_bug.cgi?id=12119
--- Comment #10 from Martin Hinner martin@hinner.info 2009-02-13 21:57:31 --- yes, it works on the latest version compiled from source code. I have even made it working with our USB hardware :-).
Unfortunately there are some other bugs for which I will create new requests.
http://bugs.winehq.org/show_bug.cgi?id=12119
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2009-02-27 16:30:55 --- Closing bugs fixed in 1.1.16.
http://bugs.winehq.org/show_bug.cgi?id=12119
Martin Hinner martin@hinner.info changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED |
--- Comment #12 from Martin Hinner martin@hinner.info 2009-08-28 00:37:08 --- I think this bug should be reopened. We've got another application which behaves exactly as described in this bug. The 'jtagtest.exe' app works fine in 1.1.28, but another program does not. I can post some source code or make the app available for download (no drivers needed to see, ehm .. NOT to see the menubar).
http://bugs.winehq.org/show_bug.cgi?id=12119
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED Alias|dialog_setmenu |
--- Comment #13 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-28 19:20:40 --- (In reply to comment #12)
I think this bug should be reopened.
Please report as a separate bug.
http://bugs.winehq.org/show_bug.cgi?id=12119
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-28 19:21:17 --- Closing fixed