The SFTDATE_CLASS and SFTCALENDAR_CLASS preprocessor symbols define the window class names of the date field control and the month calendar control.
#define SFTDATE_CLASS "SftDateControl20" #define SFTCALENDAR_CLASS "SftCalendarControl20"
A date field control is created using the window class SFTDATE_CLASS, a month calendar control using SFTCALENDAR_CLASS. Both are used with the SftDate_xxx functions or the C++ classes CSftDate and CSftCalendar. The actual class names (SftDateControl20, SftCalendarControl20) usually change between SftDate/DLL releases.
The symbols are normally used when creating a control dynamically using CreateWindow or CreateWindowEx. They are defined as ANSI string literals; use TEXT(SFTDATE_CLASS) to obtain the class name in the character set used by the application. When designing a dialog resource, the window class name must be entered as-is (SftDateControl20 or SftCalendarControl20), as the preprocessor symbols cannot be used (see Creating a Dialog Resource).
The window classes are available once the application has called RegisterApp.
See Also C/C++ API | Categories | Notifications