#38736: DTM_SETFORMATW incorrectly defined in commctrl.h Open Date: 2018-11-08 22:28 Last Update: 2018-11-18 21:37 URL for this Ticket: https://osdn.net//projects/mingw/ticket/38736 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38736 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2018-11-18 21:37 Updated by: keith * Status Update from Open to Closed * Resolution Update from None to Fixed Comment: Fixed by commit #955a4fc. --------------------------------------------------------------------- Ticket Status: Reporter: heisenbug Owner: keith Type: Issues Status: Closed Priority: 5 - Medium MileStone: (None) Component: WSL Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: Problem: MinGW's w32api header commctrl.h incorrectly defines DTM_SETFORMATW as 0x1050. The official MSVC++ WinAPI headers define DTM_SETFORMATW as 0x1032, via the expression DTM_FIRST + 50, where DTM_FIRST is 0x1000. This of course translates to the correct value of 0x1032. I suspect that DTM_SETFORMATW accidentally became 0x1050 in the MinGW header, because of a mental hex addition error. -- Ticket information of MinGW - Minimalist GNU for Windows project MinGW - Minimalist GNU for Windows Project is hosted on OSDN Project URL: https://osdn.net/projects/mingw/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net//projects/mingw/ticket/38736 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38736