http://bugs.winehq.org/show_bug.cgi?id=9504
Summary: Cannot close CMonthCalCtrl popup by clicking outside popup Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-user AssignedTo: wine-bugs@winehq.org ReportedBy: peter@cendio.se
I have an application that uses a custom control: A wrapper that displays a CMonthCalCtrl in a popup window. In Windows, it's possible to close the popup by clicking outside the popup. With Wine, however, it is necessary to either select a date or press Escape. The popup will also be closed if the user tries to move the popup window (which has X11 WM decorations). When clicking outside the popup with Wine, Wine generates a beep through X11 (I believe this happens since a WM_SETCURSOR with HTERROR is generated).
A demo program is available as http://www.cendio.se/~astrand/wine/6-close-popup/. Requires Visual C++ 2005 runtime libraries.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #1 from Peter Åstrand peter@cendio.se 2007-09-04 06:21:26 --- I've created an EXE which links MFC statically, so that you don't need the MSVC runtimes. It's available as http://www.cendio.se/~astrand/wine/6-close-popup/TestApp1Static.exe .
http://bugs.winehq.org/show_bug.cgi?id=9504
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|wine-user |wine-misc Ever Confirmed|0 |1 Keywords| |download
--- Comment #2 from Austin English austinenglish@gmail.com 2007-09-04 20:01:04 --- Confirming in wine 0.9.44. Can you provide the source to the sample app?
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #3 from Peter Åstrand peter@cendio.se 2007-09-05 02:06:30 --- Austin, I've sent the source in a private email to you. If anyone else wants it, please contact me.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #4 from Peter Åstrand peter@cendio.se 2007-10-29 04:22:53 --- This bug also occurs in Microsofts "CMNCTRL1 Sample", available from http://msdn2.microsoft.com/en-us/library/ftzc04bf(VS.80).aspx. Try http://www.cendio.com/~astrand/wine/62-tab-size/CmnCtrl1.exe, select tab "CDateTimeCtrl" and click on the drop down.
http://bugs.winehq.org/show_bug.cgi?id=9504
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |thestig@google.com Status|NEW |ASSIGNED
--- Comment #5 from Lei Zhang thestig@google.com 2007-10-30 13:47:23 --- Created an attachment (id=8873) --> (http://bugs.winehq.org/attachment.cgi?id=8873) datetime DTN_CLOSE patch
Does this patch help?
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #6 from Lei Zhang thestig@google.com 2007-10-30 14:37:49 --- Hmm, this only helps with the app in comment 4. "testapp1" doesn't use a datetime picker.
http://bugs.winehq.org/show_bug.cgi?id=9504
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #8873 is|0 |1 obsolete| |
--- Comment #7 from Lei Zhang thestig@google.com 2007-10-30 19:25:10 --- Created an attachment (id=8875) --> (http://bugs.winehq.org/attachment.cgi?id=8875) datetime close monthcal on focus loss patch
Actually, try this patch for the app in comment 4.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #8 from Peter Åstrand peter@cendio.se 2007-10-31 02:23:24 --- I can confirm that your patch solves the problem for CmnCtrl1.exe but not for TestApp1.exe.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #9 from Lei Zhang thestig@google.com 2007-11-01 17:08:16 --- I looked at the problem with TestApp1.exe. When the dropdown button is clicked, a dialog box (class 32770) is created. This dialog box is the container for the monthcal control. The parent window for the dialog box is disabled.
On Windows, when you click outside of the monthcal / dialog box, the dialog box somehow knows to destroy itself, along with the monthcal, then the parent window is re-enabled and focus returns to it.
On Wine, currently the dialog box does not get destroyed. Meanwhile, the parent window is disabled, so it cannot receive focus. So the user cannot interact with the parent window until the dialog box goes away, which only happens if the user selects something in the monthcal.
I don't know what makes the dialog box tick, but my guess is that it is expecting a message when the mouse is clicked outside of it, and we're not sending that message.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #10 from Lei Zhang thestig@google.com 2007-11-02 12:50:20 --- Peter Åstrand wrote:
Hi, and thanks for working on this. I share your conclusion.
Do you want the source code for TestApp1?
Sure, can't hurt.
Please remember to use bugzilla rather than replying to wine-bugs.
http://bugs.winehq.org/show_bug.cgi?id=9504
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|thestig@google.com |wine-bugs@winehq.org Status|ASSIGNED |NEW
--- Comment #11 from Lei Zhang thestig@google.com 2008-04-19 10:44:31 --- Still present in Wine 0.9.60. I was mainly trying to fix the problem with the monthcal (i.e. CmnCtrl1.exe) Reassigning.
http://bugs.winehq.org/show_bug.cgi?id=9504
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|download |patch
--- Comment #12 from Austin English austinenglish@gmail.com 2008-12-05 02:34:22 --- Download link is busted. Got another one?
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #13 from Lei Zhang thestig@google.com 2008-12-05 19:15:48 --- I still have a copy of the test executable. Problem persists.
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #14 from Peter Åstrand peter@cendio.se 2008-12-07 08:53:42 --- For now, just replace www.cendio.se with www.cendio.com.
http://bugs.winehq.org/show_bug.cgi?id=9504
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #15 from Austin English austinenglish@gmail.com 2009-01-15 10:53:45 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If still present, update version field to earliest known version of wine that had this bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=9504
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #16 from Austin English austinenglish@gmail.com 2009-07-21 12:23:52 --- Is this still an issue in current (1.1.26 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #17 from Nikolay Sivov bunglehead@gmail.com 2009-07-23 03:56:05 --- Does 'winetricks cc580' help?
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #18 from Nikolay Sivov bunglehead@gmail.com 2009-08-02 11:38:54 --- Tested with current 1.1.26:
MS example from comment 4 works fine.
Peter's application still doesn't. Native comctl32 doesn't help here.
http://bugs.winehq.org/show_bug.cgi?id=9504
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Version|unspecified |0.9.44. Severity|enhancement |normal
--- Comment #19 from Anastasius Focht focht@gmx.net 2011-06-16 12:25:58 CDT --- Hello,
confirming, still present. You can make the monthcal control appear "detached" by dragging the dialog box or main window caption :-) Probably not intended for child controls ...
You could try WinSpector or other Window Message Monitoring/Spy tools when running this app in Windows.
$ wine --version wine-1.3.22-129-gdad3342
Regards
http://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #20 from butraxz@gmail.com 2013-12-07 02:47:31 CST --- This ticket has not been updated for over 900 days. Development recommends to check the status on your bug every release or two and let to be known if the bug is still present. If not, mark it fixed. If you are no longer able to put effort to this ticket, you can abandon it.
Is this still an issue with 1.7.8 or higher ?
http://bugs.winehq.org/show_bug.cgi?id=9504
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.cendio.se/~astra | |nd/wine/6-close-popup/TestA | |pp1Static.exe Platform|Other |x86 OS/Version|other |Linux
--- Comment #21 from Anastasius Focht focht@gmx.net 2013-12-07 08:42:29 CST --- Hello folks,
issue still present with test app from comment #1
$ sha1sum TestApp1Static.exe 80993ccd77c31afd270ac9b0cf492fe5f8eb1ba1 TestApp1Static.exe
$ du -sh TestApp1Static.exe 456K TestApp1Static.exe
$ wine --version wine-1.7.8-128-g37460b6
Regards
https://bugs.winehq.org/show_bug.cgi?id=9504
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #22 from super_man@post.com --- still valid 1.8.rc4
https://bugs.winehq.org/show_bug.cgi?id=9504
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #23 from Vijay Kamuju infyquest@gmail.com --- can anyone please retest this, I dont see this issue with latest wine git 3.0 rc6.
https://bugs.winehq.org/show_bug.cgi?id=9504
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |comctl32
https://bugs.winehq.org/show_bug.cgi?id=9504
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #24 from Damjan Jovanovic damjan.jov@gmail.com --- (In reply to Anastasius Focht from comment #21)
Hello folks,
issue still present with test app from comment #1
$ sha1sum TestApp1Static.exe 80993ccd77c31afd270ac9b0cf492fe5f8eb1ba1 TestApp1Static.exe
$ du -sh TestApp1Static.exe 456K TestApp1Static.exe
$ wine --version wine-1.7.8-128-g37460b6
Regards
The download link is now a "Forbidden".
Does anyone still have a copy of that binary?
https://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #25 from Anastasius Focht focht@gmx.net --- Hello Damjan,
--- quote --- The download link is now a "Forbidden".
Does anyone still have a copy of that binary? --- quote ---
no. I've checked my own backups but that one is gone. I partially lost my wine-bugs git-annex some years ago. archive.org doesn't have any snapshots either. Probably due to the age of this bug report.
If the original author / OP doesn't have a copy of the test app anymore I propose to abandon here.
Regards
https://bugs.winehq.org/show_bug.cgi?id=9504
--- Comment #26 from Peter Åstrand astrand@lysator.liu.se --- http://sara.hytechdrive.se/wine/6-close-popup/TestApp1Static.exe
https://bugs.winehq.org/show_bug.cgi?id=9504
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.cendio.se/~astra |https://web.archive.org/web |nd/wine/6-close-popup/TestA |/20210602072220/http://sara |pp1Static.exe |.hytechdrive.se/wine/6-clos | |e-popup/TestApp1Static.exe
--- Comment #27 from Anastasius Focht focht@gmx.net --- Hello Peter,
thanks for the new link. I've created a snapshot / stable link via archive.org:
https://web.archive.org/web/20210602072220/http://sara.hytechdrive.se/wine/6...
Regards