OS: Windows 7 x64
AHK: affects all versions
Bug Description
For a DateTime control, if specify 1 in the options and LongDate in the last parameter, no UpDown appears. Neither in MSDN nor in the AHK documentation I've found something, why the styles cancel each other out.
Apparently there are problems with DTS_SHORTDATECENTURYFORMAT (0xC), which is enforced for this control. Instead, WinSpy++ displays DTS_LONGDATEFORMAT and 00000008 (?) as active styles (0x4 + 0x8 = 0xC). If this is not a bug, it should be mentioned in the documentation.
Steps to Reproduce
Code: Select all
; 0x1 = DTS_UPDOWN (1)
Gui, Add, DateTime, +0x1, LongDate
Gui, Show
Code: Select all
; 0x1 = DTS_UPDOWN (1)
; 0x4 = DTS_LONGDATEFORMAT (LongDate)
; 0xC = DTS_SHORTDATECENTURYFORMAT (omitted)
Gui, Add, DateTime, -0xC +0x1 hwndDT
WinSet, Style, +0x4, ahk_id %DT%
Gui, Show