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:
| Accessibility | Dark mode, high contrast and screen reader announcements |
| Appearance | Themes |
| Application | Application initialization and termination, window procedures, GDI+ images, MFC classes and the notification window |
| Calendar Settings | Months, week numbers, buttons, views, fonts and colors of a month calendar control and of the dropdown calendar of a date field control |
| Culture | Locale, calendar system and reading order |
| Date Field | Format, editing, buttons, check box and empty values of a date field control |
| Definitions | Preprocessor symbols |
| DPI and Scaling | Per-Monitor DPI awareness and image scaling |
| Dropdown | The dropdown of a date field control |
| Month Calendar | Focused date, view and the periods shown in a month calendar control |
| Sizing and Hit Testing | Automatic sizing, preferred sizes and hit testing |
| Special Dates | Holidays, appointments and other days a calendar shows differently |
| Structures | Structures used with functions and notifications |
| Values and Ranges | Value, selected range, earliest and latest date and selection mode |
| Announce | Pushes short application-status text to attached screen readers through a UI Automation notification event. |
| DarkMode | Defines whether a control is rendered using a dark color palette. |
| HighContrastMode | Defines whether a control honors the Windows High Contrast accessibility setting. |
| UseThemes | Defines whether a control uses the current Windows theme. |
| Create | Creates a date field control or a month calendar control and attaches it to the CSftDate or CSftCalendar object. |
| CSftDate / CSftCalendar | Destroys a CSftDate or CSftCalendar object and its control window. |
| FreeGDIPlusImageLoadedFromFile | Deletes a GDI+ image obtained using LoadGDIPlusImageFromFile. |
| FreeGDIPlusImageLoadedFromResource | Deletes a GDI+ image obtained using LoadGDIPlusImageFromResource. |
| LoadGDIPlusImageFromFile | Loads a GDI+ image from a file. |
| LoadGDIPlusImageFromResource | Loads a GDI+ image from an application's or DLL's resources. |
| NotifyWindow | Defines the window that receives the notifications of a control. |
| RegisterApp | Registers an application with SftDate/DLL. |
| UnregisterApp | Unregisters an application from SftDate/DLL. |
| WndProc | The window procedures of the date field control and the month calendar control. Exposed for advanced scenarios; applications do not call them directly. |
| AllowedViews | Defines the views the user can switch to. |
| CalendarClearButton | Defines whether the Clear button is shown below the months. |
| CalendarClearText | Defines the text of the Clear button of a calendar. |
| CalendarFont | Defines the font of the days and names of a calendar. |
| Color | Defines the colors of a control. |
| DisabledDaysOfWeek | Defines the days of the week the user cannot select. |
| FirstDayOfWeek | Defines the day shown in the first column of a month. |
| HighlightToday | Defines whether today's date is marked in the calendar. |
| InitialView | Defines the view a calendar shows first. |
| MaxRangeDays | Defines the maximum number of days the user can select in range selection mode. |
| MonthsAcross | Defines the number of months shown side by side. |
| MonthsDown | Defines the number of rows of months shown. |
| RefreshDays | Formats the days shown again, after the information the application uses in the NM_SFTDATE_DAYFORMATTING notification has changed. |
| ScrollMonths | Defines the number of months the navigation buttons scroll. |
| ShowTodayButton | Defines whether the Today button is shown below the months. |
| ShowTrailingDates | Defines whether the days of the previous and next month are shown to fill the first and last week of a month. |
| ShowWeekNumbers | Defines whether week numbers are shown in front of each week. |
| TitleFont | Defines the font of the title of a calendar. |
| TodayDate | Defines the date a calendar treats as today. |
| TodayText | Defines the text of the Today button. |
| WeekNumberRule | Defines how week numbers are computed. |
| Culture | Defines the locale and the calendar system a control uses for names, formats and dates. |
| GetOptionalCalendars | Retrieves the calendar systems a locale offers that SftDate/DLL supports. |
| RightToLeft | Defines whether a control is laid out from right to left. |
| AllowEmpty | Defines whether a date field control can be empty. |
| AutoAdvance | Defines whether the next part of the value is selected once a part is complete. |
| BorderStyle | Defines the border of a date field control. |
| Buttons | Defines the buttons shown in a date field control. |
| Checked | Defines whether the check box of a date field control is checked. |
| CustomFormat | Defines the custom format of a date field control. |
| DefaultText | Defines a text such as =Today that sets the value of a date field control. |
| EditStyle | Defines how the user edits the value of a date field control. |
| Format | Defines the format in which a date field control shows and edits its value. |
| PlaceholderText | Defines the text an empty date field control shows. |
| RangeSeparator | Defines the text shown between the two dates of a date field control in range selection mode. |
| ShowCheckBox | Defines whether a date field control shows a check box. |
| ShowClearButton | Defines whether a date field control shows a Clear button. |
| SFTDATE_CLASS, SFTCALENDAR_CLASS | The SFTDATE_CLASS and SFTCALENDAR_CLASS preprocessor symbols define the window class names of the date field control and the month calendar control. |
| SFTDATE_NOCOLOR | The SFTDATE_NOCOLOR preprocessor symbol is used to indicate that the default color should be used. |
| SFTDATE_STATIC | The SFTDATE_STATIC preprocessor symbol selects static linking of SftDate/DLL to an application. |
| DPI | Returns the DPI a control currently uses. |
| ImageScaling | Defines how the pictures of days are scaled relative to the current monitor DPI. |
| CloseDropDown | Closes the dropdown of a date field control. |
| DropDownAlignment | Defines the edge of a date field control the dropdown aligns with. |
| DropDownContent | Defines what the dropdown of a date field control shows. |
| DropOnFocus | Defines whether the dropdown opens when a date field control receives the input focus. |
| IsDroppedDown | Returns whether the dropdown of a date field control is open. |
| OpenDropDown | Opens the dropdown of a date field control. |
| TimeDropDownStyle | Defines how the dropdown of a date field control shows times. |
| TimeInterval | Defines the interval between the times of the time list. |
| DisplayStart | Defines the first period a month calendar control shows. |
| FirstDisplayedDate | Returns the first day a month calendar control shows. |
| FocusedDate | Defines the date that has the keyboard focus in a month calendar control. |
| LastDisplayedDate | Returns the last day a month calendar control shows. |
| Scroll | Scrolls a month calendar control by a number of periods. |
| ScrollIntoView | Scrolls a month calendar control so that a date is shown. |
| View | Defines the view a month calendar control shows. |
| AutoSize | Defines whether a control sizes itself. |
| HitTest | Returns the part of a control at a point. |
| PreferredHeight | Returns the height a date field control needs for its font and border. |
| PreferredSize | Returns the size a control needs for its contents. |
| SingleMonthSize | Returns the size of a month calendar control showing one month. |
| AddSpecialDate | Adds a special date at the end of the list of special dates. |
| ClearSpecialDates | Removes all special dates. |
| DeleteSpecialDate | Removes a special date. |
| FindSpecialDate | Finds the special date that applies to a day. |
| InsertSpecialDate | Inserts a special date into the list of special dates. |
| SpecialDate | Retrieves or replaces a special date. |
| SpecialDateCount | Returns the number of special dates. |
| SFTDATE_HITTEST | The SFTDATE_HITTEST structure receives the part of a control at a point, as returned by HitTest. |
| SFTDATE_NMCANCEL | The SFTDATE_NMCANCEL structure is sent with the NM_SFTDATE_DROPDOWNOPENING notification before the dropdown of a date field control opens. |
| SFTDATE_NMDATE | The SFTDATE_NMDATE structure is sent with the NM_SFTDATE_DATEACTIVATED notification when the user chooses a date in a month calendar control. |
| SFTDATE_NMDAYFORMATTING | The 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_NMKEYDOWN | The SFTDATE_NMKEYDOWN structure is sent with the NM_SFTDATE_KEYDOWN notification before a control handles a key. |
| SFTDATE_NMTEXTPARSING | The 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_NMVALIDATING | The 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_SPECIALDATE | The SFTDATE_SPECIALDATE structure describes a special date, a day a calendar shows differently, such as a holiday or an appointment. |
| MaxDate | Defines the latest date a control accepts. |
| MinDate | Defines the earliest date a control accepts. |
| Range | Defines the selected range of dates of a control in range selection mode. |
| SelectionMode | Defines whether a control holds one date or a range of dates. |
| Value | Defines the value of a date field control or the selected date of a month calendar control. |
See Also C/C++ API | Categories | Notifications