HeaderPane
Main
Hide
Share Link
Print

HighlightToday

Defines whether today's date is marked in the calendar.

C

BOOL WINAPI SftDate_GetHighlightToday(HWND hwndCtl);
void WINAPI SftDate_SetHighlightToday(HWND hwndCtl, BOOL fHighlight);

C++

BOOL CSftDate::GetHighlightToday() const;
BOOL CSftCalendar::GetHighlightToday() const;
void CSftDate::SetHighlightToday(BOOL fHighlight);
void CSftCalendar::SetHighlightToday(BOOL fHighlight);

Parameters

hwndCtl

The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.

fHighlight

TRUE if today's date is marked in the calendar, otherwise FALSE.

Returns

GetHighlightToday returns TRUE if today's date is marked in the calendar, otherwise FALSE.

Comments

The GetHighlightToday and SetHighlightToday functions define and retrieve whether today's date is marked in the calendar. The default is TRUE.

Today's date (SetTodayDate) is marked using the color SFTDATE_COLOR_TODAY (SetColor).

The setting applies to a month calendar control and to the dropdown calendar of a date field control.

Examples

C View entire sample code

            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)
            SftDate_SetCalendarClearButton(c[i], fChecked);
        break;
    case IDC_HOLIDAYS:
        SetHolidays(c, fChecked);

C++ View entire sample code

            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)
            Control(i).SetCalendarClearButton(fChecked);
        break;
    case IDC_HOLIDAYS:
        SetHolidays(fChecked);

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


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