Defines whether the days of the previous and next month are shown to fill the first and last week of a month.
C
BOOL WINAPI SftDate_GetShowTrailingDates(HWND hwndCtl); void WINAPI SftDate_SetShowTrailingDates(HWND hwndCtl, BOOL fShow);
C++
BOOL CSftDate::GetShowTrailingDates() const; BOOL CSftCalendar::GetShowTrailingDates() const; void CSftDate::SetShowTrailingDates(BOOL fShow); void CSftCalendar::SetShowTrailingDates(BOOL fShow);
hwndCtl
The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.
fShow
TRUE if the days of the previous and next month are shown to fill the first and last week of a month, otherwise FALSE.
GetShowTrailingDates returns TRUE if the days of the previous and next month are shown to fill the first and last week of a month, otherwise FALSE.
The GetShowTrailingDates and SetShowTrailingDates functions define and retrieve whether the days of the previous and next month are shown to fill the first and last week of a month. The default is TRUE.
The trailing days are shown in the color SFTDATE_COLOR_TRAILINGFORE (SetColor). Clicking a trailing day selects it and shows its month.
The setting applies to a month calendar control and to the dropdown calendar of a date field control.
SftDate_SetFirstDayOfWeek(c[i], sel);
break;
case IDC_VIEWS:
for (i = 0; i < CONTROLS; ++i)
SftDate_SetAllowedViews(c[i], g_viewSets[sel]);
break;
case IDC_TRAILING:
for (i = 0; i < CONTROLS; ++i)
SftDate_SetShowTrailingDates(c[i], fChecked);
break;
case IDC_TODAYBUTTON:
for (i = 0; i < CONTROLS; ++i)
SftDate_SetShowTodayButton(c[i], fChecked);
break;
case IDC_HIGHLIGHTTODAY:
for (i = 0; i < CONTROLS; ++i)
Control(i).SetFirstDayOfWeek(sel);
break;
case IDC_VIEWS:
for (int i = 0; i < CONTROLS; ++i)
Control(i).SetAllowedViews(g_viewSets[sel]);
break;
case IDC_TRAILING:
for (int i = 0; i < CONTROLS; ++i)
Control(i).SetShowTrailingDates(fChecked);
break;
case IDC_TODAYBUTTON:
for (int i = 0; i < CONTROLS; ++i)
Control(i).SetShowTodayButton(fChecked);
break;
case IDC_HIGHLIGHTTODAY:
for (int i = 0; i < CONTROLS; ++i)See Also C/C++ API | Categories | Notifications