https://bugs.winehq.org/show_bug.cgi?id=44680
Bug ID: 44680 Summary: Support for DTM_GETIDEALSIZE not implemented Product: Wine Version: 3.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: vz-wine@zeitlins.org Distribution: ---
When "Windows Version" is set to "Vista" or later, date picker controls in programs written using wxWidgets disappear because wxWidgets assumes that DTM_GETIDEALSIZE is available in these Windows versions (see https://github.com/wxWidgets/wxWidgets/blob/v3.1.1/src/msw/datetimectrl.cpp#...), but it isn't in Wine, so we just get "err:datetime:DATETIME_WindowProc unknown msg 100f" on the console and the control is created with 0 size.
We could work around this in wx but, ideally, Wine should handle this message. Even returning some hard coded size from it would be better than not handling it at all.
https://bugs.winehq.org/show_bug.cgi?id=44680
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Hi,
hardcoded value won't be an option, we'll want something closer to proper behaviour. However what you can do from your side to make it more robust, is to check if DTM_GETIDEALSIZE actually works, and not rely on reported Windows version. According to MSDN return value of 1 is expected for this message, while on Wine (or XP) you probably get 0. That doesn't mean we won't fix it of course, but that could be a solution until we do that.
https://bugs.winehq.org/show_bug.cgi?id=44680
--- Comment #2 from VZ vz-wine@zeitlins.org --- Yes, indeed, I did just this in https://github.com/wxWidgets/wxWidgets/commit/66fdf49 for now, I'm mostly reporting this because it could affect other programs as well.
https://bugs.winehq.org/show_bug.cgi?id=44680
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=44680
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- This should be improved with https://source.winehq.org/git/wine.git/commit/ad698fc7be29427b50b772c1f35ccc.... Please test.
https://bugs.winehq.org/show_bug.cgi?id=44680
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |ad698fc7be29427b50b772c1f35 | |cccbb0559b95d
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- Marking fixed, ad698fc7be29427b50b772c1f35cccbb0559b95d. Please open a new report if you see any problems with current implementation.
https://bugs.winehq.org/show_bug.cgi?id=44680
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.6.