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;
hwndCtl
The window handle of the month calendar control (SftCalendar).
lpValue
A pointer to a SYSTEMTIME structure that receives the date.
The return value is TRUE if successful, or FALSE if hwndCtl is not a month calendar control.
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