HeaderPane
Main
Hide
Share Link
Print

LastDisplayedDate

Returns the last day a month calendar control shows.

C

BOOL WINAPI SftDate_GetLastDisplayedDate(HWND hwndCtl, LPSYSTEMTIME lpValue);

C++

BOOL CSftCalendar::GetLastDisplayedDate(LPSYSTEMTIME lpValue) const;

Parameters

hwndCtl

The window handle of the month calendar control (SftCalendar).

lpValue

A pointer to a SYSTEMTIME structure that receives the date.

Returns

The return value is TRUE if successful, or FALSE if hwndCtl is not a month calendar control.

Comments

The GetLastDisplayedDate function returns the last day shown. In the month view with trailing days (SetShowTrailingDates), this is the last day of the last week shown, which can be in the next month; otherwise it is the last day of the last period shown.

This function applies to the month calendar control only. For a date field control, GetLastDisplayedDate returns FALSE.

See Also C/C++ API | Categories | Notifications


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