# SftDate/DLL 2.0 — API Reference > Index of the SftDate/DLL 2.0 API reference, which is split into files by class or object. Each entry links one file and names the topics in it; read only the files you need. For an exact declaration, read the signatures file named under the class first: one line per member. The guide is in https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0.txt Online documentation: https://softelvdm.com/Documentation/SftDate%20DLL%202%200 ## Overview - [Overview](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Overview.txt) - Notifications: The date field control and the month calendar control send their notifications to the parent window (or to the window defined using SetNotifyWindow) as WM_NOTIFY messages, using SendMessage. - Windows Messages: The date field control and the month calendar control are used with the SftDate_xxx functions or the C++ classes CSftDate and CSftCalendar. - 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. - 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. ## Functions Signatures: https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-signatures-1.txt - [Functions (1 of 3)](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Functions-1.txt) - AddSpecialDate (SftDate_AddSpecialDate): Adds a special date at the end of the list of special dates. - AllowedViews (SftDate_GetAllowedViews, SftDate_SetAllowedViews): Defines the views the user can switch to. - AllowEmpty (SftDate_GetAllowEmpty, SftDate_SetAllowEmpty): Defines whether a date field control can be empty. - Announce (SftDate_Announce): Pushes short application-status text to attached screen readers through a UI Automation notification event. - AutoAdvance (SftDate_GetAutoAdvance, SftDate_SetAutoAdvance): Defines whether the next part of the value is selected once a part is complete. - AutoSize (SftDate_GetAutoSize, SftDate_SetAutoSize): Defines whether a control sizes itself. - BorderStyle (SftDate_GetBorderStyle, SftDate_SetBorderStyle): Defines the border of a date field control. - Buttons (SftDate_GetButtons, SftDate_SetButtons): Defines the buttons shown in a date field control. - CalendarClearButton (SftDate_GetCalendarClearButton, SftDate_SetCalendarClearButton): Defines whether the Clear button is shown below the months. - CalendarClearText (SftDate_GetCalendarClearText, SftDate_SetCalendarClearText): Defines the text of the Clear button of a calendar. - CalendarFont (SftDate_GetCalendarFont, SftDate_SetCalendarFont): Defines the font of the days and names of a calendar. - Checked (SftDate_GetChecked, SftDate_SetChecked): Defines whether the check box of a date field control is checked. - ClearSpecialDates (SftDate_ClearSpecialDates): Removes all special dates. - CloseDropDown (SftDate_CloseDropDown): Closes the dropdown of a date field control. - Color (SftDate_GetColor, SftDate_SetColor): 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 Destructor: Destroys a CSftDate or CSftCalendar object and its control window. - Culture (SftDate_GetCulture, SftDate_SetCulture): Defines the locale and the calendar system a control uses for names, formats and dates. - CustomFormat (SftDate_GetCustomFormat, SftDate_SetCustomFormat): Defines the custom format of a date field control. - DarkMode (SftDate_GetDarkMode, SftDate_SetDarkMode, SftDate_IsDarkModeActive): Defines whether a control is rendered using a dark color palette. - DefaultText (SftDate_GetDefaultText, SftDate_SetDefaultText): Defines a text such as =Today that sets the value of a date field control. - DeleteSpecialDate (SftDate_DeleteSpecialDate): Removes a special date. - DisabledDaysOfWeek (SftDate_GetDisabledDaysOfWeek, SftDate_SetDisabledDaysOfWeek): Defines the days of the week the user cannot select. - DisplayStart (SftDate_GetDisplayStart, SftDate_SetDisplayStart): Defines the first period a month calendar control shows. - DPI (SftDate_GetDPI): Returns the DPI a control currently uses. - [Functions (2 of 3)](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Functions-2.txt) - DropDownAlignment (SftDate_GetDropDownAlignment, SftDate_SetDropDownAlignment): Defines the edge of a date field control the dropdown aligns with. - DropDownContent (SftDate_GetDropDownContent, SftDate_SetDropDownContent): Defines what the dropdown of a date field control shows. - DropOnFocus (SftDate_GetDropOnFocus, SftDate_SetDropOnFocus): Defines whether the dropdown opens when a date field control receives the input focus. - EditStyle (SftDate_GetEditStyle, SftDate_SetEditStyle): Defines how the user edits the value of a date field control. - FindSpecialDate (SftDate_FindSpecialDate): Finds the special date that applies to a day. - FirstDayOfWeek (SftDate_GetFirstDayOfWeek, SftDate_SetFirstDayOfWeek): Defines the day shown in the first column of a month. - FirstDisplayedDate (SftDate_GetFirstDisplayedDate): Returns the first day a month calendar control shows. - FocusedDate (SftDate_GetFocusedDate, SftDate_SetFocusedDate): Defines the date that has the keyboard focus in a month calendar control. - Format (SftDate_GetFormat, SftDate_SetFormat): Defines the format in which a date field control shows and edits its value. - FreeGDIPlusImageLoadedFromFile (SftDate_FreeGDIPlusImageLoadedFromFile): Deletes a GDI+ image obtained using LoadGDIPlusImageFromFile. - FreeGDIPlusImageLoadedFromResource (SftDate_FreeGDIPlusImageLoadedFromResource): Deletes a GDI+ image obtained using LoadGDIPlusImageFromResource. - GetOptionalCalendars (SftDate_GetOptionalCalendars): Retrieves the calendar systems a locale offers that SftDate/DLL supports. - HighContrastMode (SftDate_GetHighContrastMode, SftDate_SetHighContrastMode, SftDate_IsHighContrastActive): Defines whether a control honors the Windows High Contrast accessibility setting. - HighlightToday (SftDate_GetHighlightToday, SftDate_SetHighlightToday): Defines whether today's date is marked in the calendar. - HitTest (SftDate_HitTest): Returns the part of a control at a point. - ImageScaling (SftDate_GetImageScaling, SftDate_SetImageScaling): Defines how the pictures of days are scaled relative to the current monitor DPI. - InitialView (SftDate_GetInitialView, SftDate_SetInitialView): Defines the view a calendar shows first. - InsertSpecialDate (SftDate_InsertSpecialDate): Inserts a special date into the list of special dates. - IsDroppedDown (SftDate_IsDroppedDown): Returns whether the dropdown of a date field control is open. - LastDisplayedDate (SftDate_GetLastDisplayedDate): Returns the last day a month calendar control shows. - LoadGDIPlusImageFromFile (SftDate_LoadGDIPlusImageFromFile): Loads a GDI+ image from a file. - LoadGDIPlusImageFromResource (SftDate_LoadGDIPlusImageFromResource): Loads a GDI+ image from an application's or DLL's resources. - MaxDate (SftDate_GetMaxDate, SftDate_SetMaxDate): Defines the latest date a control accepts. - MaxRangeDays (SftDate_GetMaxRangeDays, SftDate_SetMaxRangeDays): Defines the maximum number of days the user can select in range selection mode. - MinDate (SftDate_GetMinDate, SftDate_SetMinDate): Defines the earliest date a control accepts. - MonthsAcross (SftDate_GetMonthsAcross, SftDate_SetMonthsAcross): Defines the number of months shown side by side. - MonthsDown (SftDate_GetMonthsDown, SftDate_SetMonthsDown): Defines the number of rows of months shown. - NotifyWindow (SftDate_GetNotifyWindow, SftDate_SetNotifyWindow): Defines the window that receives the notifications of a control. - OpenDropDown (SftDate_OpenDropDown): Opens the dropdown of a date field control. - PlaceholderText (SftDate_GetPlaceholderText, SftDate_SetPlaceholderText): Defines the text an empty date field control shows. - [Functions (3 of 3)](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Functions-3.txt) - PreferredHeight (SftDate_GetPreferredHeight): Returns the height a date field control needs for its font and border. - PreferredSize (SftDate_GetPreferredSize): Returns the size a control needs for its contents. - Range (SftDate_GetRangeStart, SftDate_GetRangeEnd, SftDate_SetRange): Defines the selected range of dates of a control in range selection mode. - RangeSeparator (SftDate_GetRangeSeparator, SftDate_SetRangeSeparator): Defines the text shown between the two dates of a date field control in range selection mode. - RefreshDays (SftDate_RefreshDays): Formats the days shown again, after the information the application uses in the NM_SFTDATE_DAYFORMATTING notification has changed. - RegisterApp (SftDate_RegisterApp): Registers an application with SftDate/DLL. - RightToLeft (SftDate_GetRightToLeft, SftDate_SetRightToLeft): Defines whether a control is laid out from right to left. - Scroll (SftDate_Scroll): Scrolls a month calendar control by a number of periods. - ScrollIntoView (SftDate_ScrollIntoView): Scrolls a month calendar control so that a date is shown. - ScrollMonths (SftDate_GetScrollMonths, SftDate_SetScrollMonths): Defines the number of months the navigation buttons scroll. - SelectionMode (SftDate_GetSelectionMode, SftDate_SetSelectionMode): Defines whether a control holds one date or a range of dates. - SFTDATE_CLASS, SFTCALENDAR_CLASS Preprocessor Symbols: The SFTDATE_CLASS and SFTCALENDAR_CLASS preprocessor symbols define the window class names of the date field control and the month calendar control. - ShowCheckBox (SftDate_GetShowCheckBox, SftDate_SetShowCheckBox): Defines whether a date field control shows a check box. - ShowClearButton (SftDate_GetShowClearButton, SftDate_SetShowClearButton): Defines whether a date field control shows a Clear button. - ShowTodayButton (SftDate_GetShowTodayButton, SftDate_SetShowTodayButton): Defines whether the Today button is shown below the months. - ShowTrailingDates (SftDate_GetShowTrailingDates, SftDate_SetShowTrailingDates): Defines whether the days of the previous and next month are shown to fill the first and last week of a month. - ShowWeekNumbers (SftDate_GetShowWeekNumbers, SftDate_SetShowWeekNumbers): Defines whether week numbers are shown in front of each week. - SingleMonthSize (SftDate_GetSingleMonthSize): Returns the size of a month calendar control showing one month. - SpecialDate (SftDate_GetSpecialDate, SftDate_SetSpecialDate): Retrieves or replaces a special date. - SpecialDateCount (SftDate_GetSpecialDateCount): Returns the number of special dates. - TimeDropDownStyle (SftDate_GetTimeDropDownStyle, SftDate_SetTimeDropDownStyle): Defines how the dropdown of a date field control shows times. - TimeInterval (SftDate_GetTimeInterval, SftDate_SetTimeInterval): Defines the interval between the times of the time list. - TitleFont (SftDate_GetTitleFont, SftDate_SetTitleFont): Defines the font of the title of a calendar. - TodayDate (SftDate_GetTodayDate, SftDate_SetTodayDate): Defines the date a calendar treats as today. - TodayText (SftDate_GetTodayText, SftDate_SetTodayText): Defines the text of the Today button. - UnregisterApp (SftDate_UnregisterApp): Unregisters an application from SftDate/DLL. - UseThemes (SftDate_GetUseThemes, SftDate_SetUseThemes): Defines whether a control uses the current Windows theme. - Value (SftDate_GetValue, SftDate_SetValue): Defines the value of a date field control or the selected date of a month calendar control. - View (SftDate_GetView, SftDate_SetView): Defines the view a month calendar control shows. - WeekNumberRule (SftDate_GetWeekNumberRule, SftDate_SetWeekNumberRule): Defines how week numbers are computed. - WndProc (SftDate_WndProc, SftDate_CalendarWndProc): The window procedures of the date field control and the month calendar control. ## Structures Signatures: https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-signatures-1.txt - [Structures](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Structures.txt) - 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. ## Type Definitions and Symbols Signatures: https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-signatures-1.txt - [Type Definitions and Symbols](https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference-Type-Definitions-and-Symbols.txt) - 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.