Defines whether the Today button is shown below the months.
C
BOOL WINAPI SftDate_GetShowTodayButton(HWND hwndCtl); void WINAPI SftDate_SetShowTodayButton(HWND hwndCtl, BOOL fShow);
C++
BOOL CSftDate::GetShowTodayButton() const; BOOL CSftCalendar::GetShowTodayButton() const; void CSftDate::SetShowTodayButton(BOOL fShow); void CSftCalendar::SetShowTodayButton(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 Today button is shown below the months, otherwise FALSE.
GetShowTodayButton returns TRUE if the Today button is shown below the months, otherwise FALSE.
The GetShowTodayButton and SetShowTodayButton functions define and retrieve whether the Today button is shown below the months. The default is TRUE.
Clicking the Today button selects today's date (SetTodayDate), unless it is disabled, and shows its month. A month calendar control then sends the NM_SFTDATE_TODAYCLICKED notification; a date field control's dropdown calendar closes and takes the date (in single selection mode).
The button's text is defined using SetTodayText.
The setting applies to a month calendar control and to the dropdown calendar of a date field control.
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)
SftDate_SetHighlightToday(c[i], fChecked);
break;
case IDC_CLEARBUTTON:
for (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)
Control(i).SetHighlightToday(fChecked);
break;
case IDC_CLEARBUTTON:
for (int i = 0; i < CONTROLS; ++i)See Also C/C++ API | Categories | Notifications