[MinGW-Notify] [mingw] #38736: DTM_SETFORMATW incorrectly defined in commctrl.h

Back to archive index
MinGW Notification List mingw****@lists*****
Fri Nov 9 08:09:20 JST 2018


#38736: DTM_SETFORMATW incorrectly defined in commctrl.h

  Open Date: 2018-11-08 22:28
Last Update: 2018-11-08 23:09

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-08 23:09 Updated by: keith
 * Owner Update from (None) to keith

 * Component Update from OTHER to WSL


Comment:

Reply To heisenbug

    I suspect that DTM_SETFORMATW accidentally became 0x1050 in the MinGW
    header, because of a mental hex addition error.

I've no idea who specified that original definition, nor how they deduced the
value -- Microsoft don't document it, other than as the definition in their
header file -- but I suspect that you are probably correct.

Thanks for reporting the issue, and thanks for not pushing the Microsoft header
file in my face, because I will never look at it directly; I can accept your
hint as to how Microsoft may define it, and so correct it for the next WSL
release.



---------------------------------------------------------------------
Ticket Status:

      Reporter: heisenbug
         Owner: keith
          Type: Issues
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

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



More information about the MinGW-Notify mailing list
Back to archive index