HeaderPane
Main
Hide
Share Link
Print

Samples

SftDate/DLL includes sample code for C and C++/MFC.

The samples listed in the following table can be found in the folder "\Program Files (x86)\Softelvdm\SftDate DLL 2.0\Samples". Each sample is installed in its own subdirectory, with a Visual Studio solution and project. These samples are also referenced throughout the documentation.

C

C SampleDescription
DemoSampleTen date fields of every kind and a month calendar, with options for the culture and calendar system, dark mode, high contrast, buttons, border, dropdown alignment, months, week numbers, first day of the week, views, Today and Clear buttons, holidays as special dates, weekends colored through NM_SFTDATE_DAYFORMATTING, disabled weekends, range selection, limits, drop on focus, automatic advance, a color scheme and themes.
EventViewerAn appointment field that refuses weekends (NM_SFTDATE_VALUEVALIDATING), a free-form due date that accepts "+n" and "-n" days (NM_SFTDATE_TEXTPARSING) and a month calendar, with every notification logged in a list view.

C++/MFC

C++/MFC SampleDescription
DemoSampleThe DemoSample using CSftDate and CSftCalendar through DDX_Control, with notifications handled through ON_NOTIFY and ON_NOTIFY_RANGE.
EventViewerThe EventViewer using CSftDate and CSftCalendar, with all notifications handled in an OnNotify override.

The Demo application starts the C samples from its Samples tab (see Demo Application).


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