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.
| Name | Description |
|---|---|
| SFT_PICTURE | The 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_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_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_NOCOLOR | The SFTDATE_NOCOLOR preprocessor symbol is used to indicate that the default color should be used. |
| SFTDATE_SPECIALDATE | The SFTDATE_SPECIALDATE structure describes a special date, a day a calendar shows differently, such as a holiday or an appointment. |
| SFTDATE_STATIC | The SFTDATE_STATIC preprocessor symbol selects static linking of SftDate/DLL to an application. |
| Name | Description |
|---|---|
| AddSpecialDate | Adds a special date at the end of the list of special dates. |
| AllowedViews | Defines the views the user can switch to. |
| AllowEmpty | Defines whether a date field control can be empty. |
| Announce | Pushes short application-status text to attached screen readers through a UI Automation notification event. |
| AutoAdvance | Defines whether the next part of the value is selected once a part is complete. |
| AutoSize | Defines whether a control sizes itself. |
| BorderStyle | Defines the border of a date field control. |
| Buttons | Defines the buttons shown in a date field control. |
| 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. |
| Checked | Defines whether the check box of a date field control is checked. |
| ClearSpecialDates | Removes all special dates. |
| CloseDropDown | Closes the dropdown of a date field control. |
| Color | Defines the colors of a control. |
| 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. |
| Culture | Defines the locale and the calendar system a control uses for names, formats and dates. |
| CustomFormat | Defines the custom format of a date field control. |
| DarkMode | Defines whether a control is rendered using a dark color palette. |
| DefaultText | Defines a text such as =Today that sets the value of a date field control. |
| DeleteSpecialDate | Removes a special date. |
| DisabledDaysOfWeek | Defines the days of the week the user cannot select. |
| DisplayStart | Defines the first period a month calendar control shows. |
| DPI | Returns the DPI a control currently uses. |
| 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. |
| EditStyle | Defines how the user edits the value of a date field control. |
| FindSpecialDate | Finds the special date that applies to a day. |
| FirstDayOfWeek | Defines the day shown in the first column of a month. |
| FirstDisplayedDate | Returns the first day a month calendar control shows. |
| FocusedDate | Defines the date that has the keyboard focus in a month calendar control. |
| Format | Defines the format in which a date field control shows and edits its value. |
| FreeGDIPlusImageLoadedFromFile | Deletes a GDI+ image obtained using LoadGDIPlusImageFromFile. |
| FreeGDIPlusImageLoadedFromResource | Deletes a GDI+ image obtained using LoadGDIPlusImageFromResource. |
| GetOptionalCalendars | Retrieves the calendar systems a locale offers that SftDate/DLL supports. |
| HighContrastMode | Defines whether a control honors the Windows High Contrast accessibility setting. |
| HighlightToday | Defines whether today's date is marked in the calendar. |
| HitTest | Returns the part of a control at a point. |
| ImageScaling | Defines how the pictures of days are scaled relative to the current monitor DPI. |
| InitialView | Defines the view a calendar shows first. |
| InsertSpecialDate | Inserts a special date into the list of special dates. |
| IsDroppedDown | Returns whether the dropdown of a date field control is open. |
| LastDisplayedDate | Returns the last day a month calendar control shows. |
| LoadGDIPlusImageFromFile | Loads a GDI+ image from a file. |
| LoadGDIPlusImageFromResource | Loads a GDI+ image from an application's or DLL's resources. |
| MaxDate | Defines the latest date a control accepts. |
| MaxRangeDays | Defines the maximum number of days the user can select in range selection mode. |
| MinDate | Defines the earliest date a control accepts. |
| MonthsAcross | Defines the number of months shown side by side. |
| MonthsDown | Defines the number of rows of months shown. |
| NotifyWindow | Defines the window that receives the notifications of a control. |
| OpenDropDown | Opens the dropdown of a date field control. |
| PlaceholderText | Defines the text an empty date field control shows. |
| PreferredHeight | Returns the height a date field control needs for its font and border. |
| PreferredSize | Returns the size a control needs for its contents. |
| Range | Defines the selected range of dates of a control in range selection mode. |
| RangeSeparator | Defines the text shown between the two dates of a date field control in range selection mode. |
| RefreshDays | Formats the days shown again, after the information the application uses in the NM_SFTDATE_DAYFORMATTING notification has changed. |
| RegisterApp | Registers an application with SftDate/DLL. |
| RightToLeft | Defines whether a control is laid out from right to left. |
| Scroll | Scrolls a month calendar control by a number of periods. |
| ScrollIntoView | Scrolls a month calendar control so that a date is shown. |
| ScrollMonths | Defines the number of months the navigation buttons scroll. |
| SelectionMode | Defines whether a control holds one date or a range of dates. |
| ShowCheckBox | Defines whether a date field control shows a check box. |
| ShowClearButton | Defines whether a date field control shows a Clear button. |
| 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. |
| SingleMonthSize | Returns the size of a month calendar control showing one month. |
| SpecialDate | Retrieves or replaces a special date. |
| SpecialDateCount | Returns the number of special dates. |
| TimeDropDownStyle | Defines how the dropdown of a date field control shows times. |
| TimeInterval | Defines the interval between the times of the time list. |
| 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. |
| UnregisterApp | Unregisters an application from SftDate/DLL. |
| UseThemes | Defines whether a control uses the current Windows theme. |
| Value | Defines the value of a date field control or the selected date of a month calendar control. |
| View | Defines the view a month calendar control shows. |
| WeekNumberRule | Defines how week numbers are computed. |
| WndProc | The 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