https://bugs.winehq.org/show_bug.cgi?id=37515
Bug ID: 37515 Summary: Setting DateTime control display format via DTM_SETFORMATA works, but DTM_SETFORMATW does not work. Product: Wine Version: 1.7.30 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: wnalfl3737@gmail.com Distribution: ---
If a native Windows DateTime (common) control is sent a DTM_SETFORMATW message, it displays the following (wp is always NULL, and lp is LPWSTR) :
err:datetime:DATETIME_WindowProc unknown msg 1050 wp=00000000 lp=00406264
Both DTM_SETFORMATW (0x1050) and DTM_SETFORMATA (0x1005) are a variant of the message DTM_SETFORMAT, which in turn is used by the macro "DateTime_SetFormat".
The only difference between the two messages is that DTM_SETFORMATW takes lParam (the date format, MM/dd/yyyy for example) as an Unicode string, while DTM_SETFORMATA takes lParam as an ASCII/native code page string.
(P.S. through I read that posting logs here instead of sth like pastebin is not recommended, i posted it since it is only one line long :P)
https://bugs.winehq.org/show_bug.cgi?id=37515
cloak wnalfl3737@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |winelib Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=37515
cloak wnalfl3737@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Setting DateTime control |Setting DateTime control |display format via |display format via |DTM_SETFORMATA works, but |DTM_SETFORMATA works, but |DTM_SETFORMATW does not |DTM_SETFORMATW doesn't. |work. | Alias| |DTM_SETFORMATW-fail
https://bugs.winehq.org/show_bug.cgi?id=37515
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|winelib | Alias|DTM_SETFORMATW-fail |
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Thanks, I'll take a look.
https://bugs.winehq.org/show_bug.cgi?id=37515
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|comctl32 |-unknown Resolution|--- |INVALID
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- You're doing it wrong. DTM_SETFORMATW value is 0x1000 + 50 = 0x1032 (not 0x1050).
https://bugs.winehq.org/show_bug.cgi?id=37515
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|Ubuntu |---
https://bugs.winehq.org/show_bug.cgi?id=37515
cloak wnalfl3737@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |---
--- Comment #3 from cloak wnalfl3737@gmail.com --- No, I think DTM_SETFORMATW *is* 0x1050 instead of sth like 0x1000 + 50.
In MinGW's header file <commctrl.h> (http://sourceforge.net/p/mingw/mingw-org-wsl/ci/21762bb4a1bd0c88c38eead03f59...):
#define DTM_GETRANGE 0x1003 #define DTM_SETRANGE 0x1004 #define DTM_SETFORMATA 0x1005 #define DTM_SETFORMATW 0x1050 #define DTM_SETMCCOLOR 0x1006 #define DTM_GETMCCOLOR 0x1007 #define DTM_GETMONTHCAL 0x1008
https://bugs.winehq.org/show_bug.cgi?id=37515
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #4 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to cloak from comment #3)
No, I think DTM_SETFORMATW *is* 0x1050 instead of sth like 0x1000 + 50.
In MinGW's header file <commctrl.h> (http://sourceforge.net/p/mingw/mingw-org-wsl/ci/ 21762bb4a1bd0c88c38eead03f59e8d994349e83/tree/include/commctrl.h):
#define DTM_GETRANGE 0x1003 #define DTM_SETRANGE 0x1004 #define DTM_SETFORMATA 0x1005 #define DTM_SETFORMATW 0x1050 #define DTM_SETMCCOLOR 0x1006 #define DTM_GETMCCOLOR 0x1007 #define DTM_GETMONTHCAL 0x1008
http://permalink.gmane.org/gmane.comp.gnu.mingw.announce/2027
https://bugs.winehq.org/show_bug.cgi?id=37515
--- Comment #5 from cloak wnalfl3737@gmail.com --- (In reply to Dmitry Timoshkov from comment #4)
(In reply to cloak from comment #3)
No, I think DTM_SETFORMATW *is* 0x1050 instead of sth like 0x1000 + 50.
In MinGW's header file <commctrl.h> (http://sourceforge.net/p/mingw/mingw-org-wsl/ci/ 21762bb4a1bd0c88c38eead03f59e8d994349e83/tree/include/commctrl.h):
#define DTM_GETRANGE 0x1003 #define DTM_SETRANGE 0x1004 #define DTM_SETFORMATA 0x1005 #define DTM_SETFORMATW 0x1050 #define DTM_SETMCCOLOR 0x1006 #define DTM_GETMCCOLOR 0x1007 #define DTM_GETMONTHCAL 0x1008
http://permalink.gmane.org/gmane.comp.gnu.mingw.announce/2027
Wow....Thanks!!!!!!!!
https://bugs.winehq.org/show_bug.cgi?id=37515
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid.