Returns the first day a month calendar control shows.
C
BOOL WINAPI SftDate_GetFirstDisplayedDate(HWND hwndCtl, LPSYSTEMTIME lpValue);
C++
BOOL CSftCalendar::GetFirstDisplayedDate(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 GetFirstDisplayedDate function returns the first day shown. In the month view with trailing days (SetShowTrailingDates), this is the first day of the first week shown, which can be in the previous month; otherwise it is the first day of the first period shown (GetDisplayStart).
An application uses GetFirstDisplayedDate and GetLastDisplayedDate to load the data it needs for the days shown, for example in the NM_SFTDATE_DISPLAYCHANGED notification.
This function applies to the month calendar control only. For a date field control, GetFirstDisplayedDate returns FALSE.
See Also C/C++ API | Categories | Notifications