HeaderPane
Main
Hide
Share Link
Print

Comparison with the Date and Time Picker and Month Calendar Controls

SftDate/DLL covers all functions of the Windows Date and Time Picker (SysDateTimePick32) and Month Calendar (SysMonthCal32) controls. It is not a drop-in replacement: its functions, notifications and constants have their own names and parameters, and a calendar setting is set with the same function for an SftCalendar control and for the dropdown calendar of an SftDate control, instead of DTM_SETMC* messages. This table shows where each function of the Windows controls is found.

Date and Time Picker

SysDateTimePick32SftDate/DLL
DTM_GETSYSTEMTIME, DTM_SETSYSTEMTIMESftDate_GetValue, SftDate_SetValue (a NULL value empties the field)
DTS_SHOWNONE, GDT_NONESftDate_SetShowCheckBox, SftDate_SetChecked, and SftDate_SetAllowEmpty for empty fields without a check box, with SftDate_SetPlaceholderText and SftDate_SetShowClearButton
DTM_GETRANGE, DTM_SETRANGESftDate_GetMinDate, SftDate_SetMinDate, SftDate_GetMaxDate, SftDate_SetMaxDate, within the years 1 to 9999 and the culture's calendar
DTS_SHORTDATEFORMAT, DTS_SHORTDATECENTURYFORMAT, DTS_LONGDATEFORMAT, DTS_TIMEFORMAT, DTM_SETFORMATSftDate_SetFormat, SftDate_SetCustomFormat (see Formats)
DTS_UPDOWNSftDate_SetButtons
DTS_RIGHTALIGNSftDate_SetDropDownAlignment
DTS_APPCANPARSE, DTN_USERSTRINGSftDate_SetEditStyle with SFTDATE_EDIT_FREEFORM, NM_SFTDATE_TEXTPARSING
DTN_DATETIMECHANGENM_SFTDATE_VALUECHANGED, preceded by NM_SFTDATE_VALUEVALIDATING for changes the user makes
DTN_DROPDOWN, DTN_CLOSEUPNM_SFTDATE_DROPDOWNOPENING, NM_SFTDATE_DROPDOWNOPENED, NM_SFTDATE_DROPDOWNCLOSED
DTM_GETMONTHCAL, DTM_SETMCSTYLE, DTM_SETMCCOLOR, DTM_SETMCFONTThe calendar functions called for the field (SftDate_SetShowWeekNumbers, SftDate_SetColor, SftDate_SetCalendarFont, ...)
DTM_CLOSEMONTHCALSftDate_CloseDropDown; SftDate_OpenDropDown and SftDate_IsDroppedDown
DTM_GETIDEALSIZESftDate_GetPreferredSize, SftDate_GetPreferredHeight, SftDate_SetAutoSize
DTN_FORMAT, DTN_FORMATQUERY, DTN_WMKEYDOWN (callback fields)NM_SFTDATE_KEYDOWN handles keys; there are no callback fields
WM_GETTEXT, WM_SETTEXTWM_GETTEXT, WM_SETTEXT (setting the text parses it)

Month Calendar

SysMonthCal32SftDate/DLL
MCM_GETCURSEL, MCM_SETCURSELSftDate_GetValue, SftDate_SetValue
MCS_MULTISELECT, MCM_GETSELRANGE, MCM_SETSELRANGE, MCM_SETMAXSELCOUNTSftDate_SetSelectionMode, SftDate_GetRangeStart, SftDate_GetRangeEnd, SftDate_SetRange, SftDate_SetMaxRangeDays (no limit by default)
MCM_GETRANGE, MCM_SETRANGESftDate_GetMinDate, SftDate_SetMinDate, SftDate_GetMaxDate, SftDate_SetMaxDate
MCS_DAYSTATE, MCN_GETDAYSTATE, MCM_SETDAYSTATESpecial dates (SftDate_AddSpecialDate) with recurrence, bold text, colors, pictures and tooltips, and NM_SFTDATE_DAYFORMATTING
MCM_GETFIRSTDAYOFWEEK, MCM_SETFIRSTDAYOFWEEKSftDate_GetFirstDayOfWeek, SftDate_SetFirstDayOfWeek
MCM_GETTODAY, MCM_SETTODAYSftDate_GetTodayDate, SftDate_SetTodayDate (NULL follows the system date)
MCS_NOTODAY, MCS_NOTODAYCIRCLESftDate_SetShowTodayButton, SftDate_SetHighlightToday
MCS_WEEKNUMBERSSftDate_SetShowWeekNumbers, SftDate_SetWeekNumberRule
MCS_NOTRAILINGDATESSftDate_SetShowTrailingDates
MCM_GETMONTHDELTA, MCM_SETMONTHDELTASftDate_GetScrollMonths, SftDate_SetScrollMonths
MCM_GETMINREQRECT, MCM_SIZERECTTOMIN, MCM_GETCALENDARCOUNTSftDate_GetSingleMonthSize, SftDate_GetPreferredSize, SftDate_SetAutoSize, and SftDate_SetMonthsAcross and SftDate_SetMonthsDown, which define the number of months instead of the window size
MCM_GETMONTHRANGESftDate_GetFirstDisplayedDate, SftDate_GetLastDisplayedDate, SftDate_GetDisplayStart
MCM_HITTESTSftDate_HitTest (SFTDATE_HITTEST)
MCM_GETCOLOR, MCM_SETCOLORSftDate_GetColor, SftDate_SetColor (see Colors)
MCM_GETCURRENTVIEW, MCM_SETCURRENTVIEW, MCN_VIEWCHANGESftDate_GetView, SftDate_SetView, NM_SFTDATE_VIEWCHANGED, SftDate_SetAllowedViews, SftDate_SetInitialView
MCM_GETCALID, MCM_SETCALIDSftDate_GetCulture, SftDate_SetCulture, with any locale and calendar system independent of the system settings
MCN_SELCHANGE, MCN_SELECTNM_SFTDATE_VALUECHANGED, NM_SFTDATE_RANGECHANGED, NM_SFTDATE_DATEACTIVATED

Beyond the Windows Controls

SftDate/DLL adds, among others: any culture and calendar system independent of the system settings, empty fields with a placeholder text and a Clear button, date ranges in a field, a time list or clock face in the dropdown, free-form typing with application-defined parsing, a validation notification, special dates with colors, pictures and tooltips, a day formatting notification, disabled days, a Clear button in the calendar, a dropdown that leaves the input focus in the field, dark mode, high contrast and per-monitor DPI.


Last Updated 11/26/2026 - (email)
© 2026 Softel vdm, Inc.