HeaderPane
Main
Hide
Share Link
Print

C/C++ API

Direct calls to the SftDate/DLL DLLs are used to communicate with the date field and month calendar controls for maximum efficiency.

The C++ classes CSftDate (date field control) and CSftCalendar (month calendar control) define all necessary functions to communicate with the controls. Both are derived from CSftDateBase, which holds the functions that apply to both controls.

The API Reference section lists C and C++ functions. They are sorted alphabetically, but leading SftDate_, SftDate_Get and SftDate_Set text is not considered. E.g., when looking up the function SftDate_GetFormat, look for topic Format, the leading SftDate_Get is dropped.

Definitions and Structures

NameDescription
SFT_PICTUREThe SFT_PICTURE structure describes a picture (bitmap, icon, image list image, GDI+ image or color sample), used for the pictures of special dates and formatted days.
SFTDATE_CLASS, SFTCALENDAR_CLASSThe SFTDATE_CLASS and SFTCALENDAR_CLASS preprocessor symbols define the window class names of the date field control and the month calendar control.
SFTDATE_HITTESTThe SFTDATE_HITTEST structure receives the part of a control at a point, as returned by HitTest.
SFTDATE_NMCANCELThe SFTDATE_NMCANCEL structure is sent with the NM_SFTDATE_DROPDOWNOPENING notification before the dropdown of a date field control opens.
SFTDATE_NMDATEThe SFTDATE_NMDATE structure is sent with the NM_SFTDATE_DATEACTIVATED notification when the user chooses a date in a month calendar control.
SFTDATE_NMDAYFORMATTINGThe SFTDATE_NMDAYFORMATTING structure is sent with the NM_SFTDATE_DAYFORMATTING notification before a calendar shows a day, so the application can change how it is shown.
SFTDATE_NMKEYDOWNThe SFTDATE_NMKEYDOWN structure is sent with the NM_SFTDATE_KEYDOWN notification before a control handles a key.
SFTDATE_NMTEXTPARSINGThe SFTDATE_NMTEXTPARSING structure is sent with the NM_SFTDATE_TEXTPARSING notification before a date field control parses a text, so the application can parse it instead.
SFTDATE_NMVALIDATINGThe SFTDATE_NMVALIDATING structure is sent with the NM_SFTDATE_VALUEVALIDATING notification before a change the user made to the value of a date field control is applied.
SFTDATE_NOCOLORThe SFTDATE_NOCOLOR preprocessor symbol is used to indicate that the default color should be used.
SFTDATE_SPECIALDATEThe SFTDATE_SPECIALDATE structure describes a special date, a day a calendar shows differently, such as a holiday or an appointment.
SFTDATE_STATICThe SFTDATE_STATIC preprocessor symbol selects static linking of SftDate/DLL to an application.

Functions

NameDescription
AddSpecialDateAdds a special date at the end of the list of special dates.
AllowedViewsDefines the views the user can switch to.
AllowEmptyDefines whether a date field control can be empty.
AnnouncePushes short application-status text to attached screen readers through a UI Automation notification event.
AutoAdvanceDefines whether the next part of the value is selected once a part is complete.
AutoSizeDefines whether a control sizes itself.
BorderStyleDefines the border of a date field control.
ButtonsDefines the buttons shown in a date field control.
CalendarClearButtonDefines whether the Clear button is shown below the months.
CalendarClearTextDefines the text of the Clear button of a calendar.
CalendarFontDefines the font of the days and names of a calendar.
CheckedDefines whether the check box of a date field control is checked.
ClearSpecialDatesRemoves all special dates.
CloseDropDownCloses the dropdown of a date field control.
ColorDefines the colors of a control.
CreateCreates a date field control or a month calendar control and attaches it to the CSftDate or CSftCalendar object.
CSftDate / CSftCalendarDestroys a CSftDate or CSftCalendar object and its control window.
CultureDefines the locale and the calendar system a control uses for names, formats and dates.
CustomFormatDefines the custom format of a date field control.
DarkModeDefines whether a control is rendered using a dark color palette.
DefaultTextDefines a text such as =Today that sets the value of a date field control.
DeleteSpecialDateRemoves a special date.
DisabledDaysOfWeekDefines the days of the week the user cannot select.
DisplayStartDefines the first period a month calendar control shows.
DPIReturns the DPI a control currently uses.
DropDownAlignmentDefines the edge of a date field control the dropdown aligns with.
DropDownContentDefines what the dropdown of a date field control shows.
DropOnFocusDefines whether the dropdown opens when a date field control receives the input focus.
EditStyleDefines how the user edits the value of a date field control.
FindSpecialDateFinds the special date that applies to a day.
FirstDayOfWeekDefines the day shown in the first column of a month.
FirstDisplayedDateReturns the first day a month calendar control shows.
FocusedDateDefines the date that has the keyboard focus in a month calendar control.
FormatDefines the format in which a date field control shows and edits its value.
FreeGDIPlusImageLoadedFromFileDeletes a GDI+ image obtained using LoadGDIPlusImageFromFile.
FreeGDIPlusImageLoadedFromResourceDeletes a GDI+ image obtained using LoadGDIPlusImageFromResource.
GetOptionalCalendarsRetrieves the calendar systems a locale offers that SftDate/DLL supports.
HighContrastModeDefines whether a control honors the Windows High Contrast accessibility setting.
HighlightTodayDefines whether today's date is marked in the calendar.
HitTestReturns the part of a control at a point.
ImageScalingDefines how the pictures of days are scaled relative to the current monitor DPI.
InitialViewDefines the view a calendar shows first.
InsertSpecialDateInserts a special date into the list of special dates.
IsDroppedDownReturns whether the dropdown of a date field control is open.
LastDisplayedDateReturns the last day a month calendar control shows.
LoadGDIPlusImageFromFileLoads a GDI+ image from a file.
LoadGDIPlusImageFromResourceLoads a GDI+ image from an application's or DLL's resources.
MaxDateDefines the latest date a control accepts.
MaxRangeDaysDefines the maximum number of days the user can select in range selection mode.
MinDateDefines the earliest date a control accepts.
MonthsAcrossDefines the number of months shown side by side.
MonthsDownDefines the number of rows of months shown.
NotifyWindowDefines the window that receives the notifications of a control.
OpenDropDownOpens the dropdown of a date field control.
PlaceholderTextDefines the text an empty date field control shows.
PreferredHeightReturns the height a date field control needs for its font and border.
PreferredSizeReturns the size a control needs for its contents.
RangeDefines the selected range of dates of a control in range selection mode.
RangeSeparatorDefines the text shown between the two dates of a date field control in range selection mode.
RefreshDaysFormats the days shown again, after the information the application uses in the NM_SFTDATE_DAYFORMATTING notification has changed.
RegisterAppRegisters an application with SftDate/DLL.
RightToLeftDefines whether a control is laid out from right to left.
ScrollScrolls a month calendar control by a number of periods.
ScrollIntoViewScrolls a month calendar control so that a date is shown.
ScrollMonthsDefines the number of months the navigation buttons scroll.
SelectionModeDefines whether a control holds one date or a range of dates.
ShowCheckBoxDefines whether a date field control shows a check box.
ShowClearButtonDefines whether a date field control shows a Clear button.
ShowTodayButtonDefines whether the Today button is shown below the months.
ShowTrailingDatesDefines whether the days of the previous and next month are shown to fill the first and last week of a month.
ShowWeekNumbersDefines whether week numbers are shown in front of each week.
SingleMonthSizeReturns the size of a month calendar control showing one month.
SpecialDateRetrieves or replaces a special date.
SpecialDateCountReturns the number of special dates.
TimeDropDownStyleDefines how the dropdown of a date field control shows times.
TimeIntervalDefines the interval between the times of the time list.
TitleFontDefines the font of the title of a calendar.
TodayDateDefines the date a calendar treats as today.
TodayTextDefines the text of the Today button.
UnregisterAppUnregisters an application from SftDate/DLL.
UseThemesDefines whether a control uses the current Windows theme.
ValueDefines the value of a date field control or the selected date of a month calendar control.
ViewDefines the view a month calendar control shows.
WeekNumberRuleDefines how week numbers are computed.
WndProcThe window procedures of the date field control and the month calendar control. Exposed for advanced scenarios; applications do not call them directly.

See Also C/C++ API | Categories | Notifications


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