Added DatePicker NSD control

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7176 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-04-23 18:31:23 +00:00
parent 2e11d853b7
commit b3044b36c1
5 changed files with 150 additions and 17 deletions

View file

@ -54,8 +54,6 @@ NOT included messages (WM_USER + X)
CBEM Extended combo box control
CDM Common dialog box
DL Drag list box
DTM Date and time picker control
MCM Month calendar control
PGM Pager control
PSM Property sheet
RB Rebar control
@ -831,5 +829,62 @@ ${_NSIS_DEFAW} ACM_OPEN
!define /math NCM_GETALLOWTYPE ${WM_USER} + 3
!define /math NCM_DISPLAYERRORTIP ${WM_USER} + 4
#Month calendar control#
!define MCM_FIRST 0x1000
!define /math MCM_GETCURSEL ${MCM_FIRST} + 1
!define /math MCM_SETCURSEL ${MCM_FIRST} + 2
!define /math MCM_GETMAXSELCOUNT ${MCM_FIRST} + 3
!define /math MCM_SETMAXSELCOUNT ${MCM_FIRST} + 4
!define /math MCM_GETSELRANGE ${MCM_FIRST} + 5
!define /math MCM_SETSELRANGE ${MCM_FIRST} + 6
!define /math MCM_GETMONTHRANGE ${MCM_FIRST} + 7
!define /math MCM_SETDAYSTATE ${MCM_FIRST} + 8
!define /math MCM_GETMINREQRECT ${MCM_FIRST} + 9
!define /math MCM_SETCOLOR ${MCM_FIRST} + 10
!define /math MCM_GETCOLOR ${MCM_FIRST} + 11
!define /math MCM_SETTODAY ${MCM_FIRST} + 12
!define /math MCM_GETTODAY ${MCM_FIRST} + 13
!define /math MCM_HITTEST ${MCM_FIRST} + 14
!define /math MCM_SETFIRSTDAYOFWEEK ${MCM_FIRST} + 15
!define /math MCM_GETFIRSTDAYOFWEEK ${MCM_FIRST} + 16
!define /math MCM_GETRANGE ${MCM_FIRST} + 17
!define /math MCM_SETRANGE ${MCM_FIRST} + 18
!define /math MCM_GETMONTHDELTA ${MCM_FIRST} + 19
!define /math MCM_SETMONTHDELTA ${MCM_FIRST} + 20
!define /math MCM_GETMAXTODAYWIDTH ${MCM_FIRST} + 21
!define MCM_SETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4+
!define MCM_GETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4+
!define /math MCM_GETCURRENTVIEW ${MCM_FIRST} + 22 ; Vista+
!define /math MCM_GETCALENDARCOUNT ${MCM_FIRST} + 23
!define /math MCM_GETCALENDARGRIDINFO ${MCM_FIRST} + 24
!define /math MCM_GETCALID ${MCM_FIRST} + 27
!define /math MCM_SETCALID ${MCM_FIRST} + 28
!define /math MCM_SIZERECTTOMIN ${MCM_FIRST} + 29
!define /math MCM_SETCALENDARBORDER ${MCM_FIRST} + 30
!define /math MCM_GETCALENDARBORDER ${MCM_FIRST} + 31
!define /math MCM_SETCURRENTVIEW ${MCM_FIRST} + 32
!define MCN_SELCHANGE -749
!define MCN_GETDAYSTATE -747
!define MCN_SELECT -746
!define MCN_VIEWCHANGE -750 ; Vista+?
#DateTime control#
!define DTM_FIRST 0x1000
!define /math DTM_GETSYSTEMTIME ${DTM_FIRST} + 1
!define /math DTM_SETSYSTEMTIME ${DTM_FIRST} + 2
!define /math DTM_SETFORMATA ${DTM_FIRST} + 5
!define /math DTM_SETFORMATW ${DTM_FIRST} + 50
${_NSIS_DEFAW} DTM_SETFORMAT
!define /math DTM_GETMONTHCAL ${DTM_FIRST} + 8
!define /math DTM_SETMCFONT ${DTM_FIRST} + 9 ; IE4+?
!define /math DTM_GETMCFONT ${DTM_FIRST} + 10 ; IE4+?
!define /math DTM_SETMCSTYLE ${DTM_FIRST} + 11 ; Vista+?
!define /math DTM_GETMCSTYLE ${DTM_FIRST} + 12 ; Vista+?
!define /math DTM_CLOSEMONTHCAL ${DTM_FIRST} + 13 ; Vista+?
!define DTN_DATETIMECHANGE -759
!define /IfNDef GDT_ERROR -1
!define /IfNDef GDT_VALID 0
!define /IfNDef GDT_NONE 1
!verbose pop
!endif
!endif