HeaderPane
Main
Hide
Share Link
Print

C/C++ API (By Category)

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

The classes CSftDate and CSftCalendar define all necessary functions to communicate with the controls.

The following function groups are listed in detail:

AccessibilityDark mode, high contrast and screen reader announcements
AppearanceThemes
ApplicationApplication initialization and termination, window procedures, GDI+ images, MFC classes and the notification window
Calendar SettingsMonths, week numbers, buttons, views, fonts and colors of a month calendar control and of the dropdown calendar of a date field control
CultureLocale, calendar system and reading order
Date FieldFormat, editing, buttons, check box and empty values of a date field control
DefinitionsPreprocessor symbols
DPI and ScalingPer-Monitor DPI awareness and image scaling
DropdownThe dropdown of a date field control
Month CalendarFocused date, view and the periods shown in a month calendar control
Sizing and Hit TestingAutomatic sizing, preferred sizes and hit testing
Special DatesHolidays, appointments and other days a calendar shows differently
StructuresStructures used with functions and notifications
Values and RangesValue, selected range, earliest and latest date and selection mode

Accessibility

AnnouncePushes short application-status text to attached screen readers through a UI Automation notification event.
DarkModeDefines whether a control is rendered using a dark color palette.
HighContrastModeDefines whether a control honors the Windows High Contrast accessibility setting.

Appearance

UseThemesDefines whether a control uses the current Windows theme.

Application

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.
FreeGDIPlusImageLoadedFromFileDeletes a GDI+ image obtained using LoadGDIPlusImageFromFile.
FreeGDIPlusImageLoadedFromResourceDeletes a GDI+ image obtained using LoadGDIPlusImageFromResource.
LoadGDIPlusImageFromFileLoads a GDI+ image from a file.
LoadGDIPlusImageFromResourceLoads a GDI+ image from an application's or DLL's resources.
NotifyWindowDefines the window that receives the notifications of a control.
RegisterAppRegisters an application with SftDate/DLL.
UnregisterAppUnregisters an application from SftDate/DLL.
WndProcThe window procedures of the date field control and the month calendar control. Exposed for advanced scenarios; applications do not call them directly.

Calendar Settings

AllowedViewsDefines the views the user can switch to.
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.
ColorDefines the colors of a control.
DisabledDaysOfWeekDefines the days of the week the user cannot select.
FirstDayOfWeekDefines the day shown in the first column of a month.
HighlightTodayDefines whether today's date is marked in the calendar.
InitialViewDefines the view a calendar shows first.
MaxRangeDaysDefines the maximum number of days the user can select in range selection mode.
MonthsAcrossDefines the number of months shown side by side.
MonthsDownDefines the number of rows of months shown.
RefreshDaysFormats the days shown again, after the information the application uses in the NM_SFTDATE_DAYFORMATTING notification has changed.
ScrollMonthsDefines the number of months the navigation buttons scroll.
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.
TitleFontDefines the font of the title of a calendar.
TodayDateDefines the date a calendar treats as today.
TodayTextDefines the text of the Today button.
WeekNumberRuleDefines how week numbers are computed.

Culture

CultureDefines the locale and the calendar system a control uses for names, formats and dates.
GetOptionalCalendarsRetrieves the calendar systems a locale offers that SftDate/DLL supports.
RightToLeftDefines whether a control is laid out from right to left.

Date Field

AllowEmptyDefines whether a date field control can be empty.
AutoAdvanceDefines whether the next part of the value is selected once a part is complete.
BorderStyleDefines the border of a date field control.
ButtonsDefines the buttons shown in a date field control.
CheckedDefines whether the check box of a date field control is checked.
CustomFormatDefines the custom format of a date field control.
DefaultTextDefines a text such as =Today that sets the value of a date field control.
EditStyleDefines how the user edits the value of a date field control.
FormatDefines the format in which a date field control shows and edits its value.
PlaceholderTextDefines the text an empty date field control shows.
RangeSeparatorDefines the text shown between the two dates of a date field control in range selection mode.
ShowCheckBoxDefines whether a date field control shows a check box.
ShowClearButtonDefines whether a date field control shows a Clear button.

Definitions

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_NOCOLORThe SFTDATE_NOCOLOR preprocessor symbol is used to indicate that the default color should be used.
SFTDATE_STATICThe SFTDATE_STATIC preprocessor symbol selects static linking of SftDate/DLL to an application.

DPI and Scaling

DPIReturns the DPI a control currently uses.
ImageScalingDefines how the pictures of days are scaled relative to the current monitor DPI.

Dropdown

CloseDropDownCloses the dropdown of a date field control.
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.
IsDroppedDownReturns whether the dropdown of a date field control is open.
OpenDropDownOpens the dropdown of a date field control.
TimeDropDownStyleDefines how the dropdown of a date field control shows times.
TimeIntervalDefines the interval between the times of the time list.

Month Calendar

DisplayStartDefines the first period a month calendar control shows.
FirstDisplayedDateReturns the first day a month calendar control shows.
FocusedDateDefines the date that has the keyboard focus in a month calendar control.
LastDisplayedDateReturns the last day a month calendar control shows.
ScrollScrolls a month calendar control by a number of periods.
ScrollIntoViewScrolls a month calendar control so that a date is shown.
ViewDefines the view a month calendar control shows.

Sizing and Hit Testing

AutoSizeDefines whether a control sizes itself.
HitTestReturns the part of a control at a point.
PreferredHeightReturns the height a date field control needs for its font and border.
PreferredSizeReturns the size a control needs for its contents.
SingleMonthSizeReturns the size of a month calendar control showing one month.

Special Dates

AddSpecialDateAdds a special date at the end of the list of special dates.
ClearSpecialDatesRemoves all special dates.
DeleteSpecialDateRemoves a special date.
FindSpecialDateFinds the special date that applies to a day.
InsertSpecialDateInserts a special date into the list of special dates.
SpecialDateRetrieves or replaces a special date.
SpecialDateCountReturns the number of special dates.

Structures

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_SPECIALDATEThe SFTDATE_SPECIALDATE structure describes a special date, a day a calendar shows differently, such as a holiday or an appointment.

Values and Ranges

MaxDateDefines the latest date a control accepts.
MinDateDefines the earliest date a control accepts.
RangeDefines the selected range of dates of a control in range selection mode.
SelectionModeDefines whether a control holds one date or a range of dates.
ValueDefines the value of a date field control or the selected date of a month calendar control.

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


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