HeaderPane
Main
Hide
Share Link
Print

ClearSpecialDates

Removes all special dates.

C

void WINAPI SftDate_ClearSpecialDates(HWND hwndCtl);

C++

void CSftDate::ClearSpecialDates();
void CSftCalendar::ClearSpecialDates();

Parameters

hwndCtl

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

Comments

The ClearSpecialDates function removes all special dates of a control. Pictures the special dates used can be released afterwards. Special dates apply to a month calendar control and to the dropdown calendar of a date field control.

Examples

C View entire sample code

    days[4].date = MakeDate(monday.wYear, monday.wMonth, monday.wDay);
    days[4].recurrence = SFTDATE_RECURRENCE_WEEKLY;
    days[4].fBold = FALSE;
    days[4].colorFg = RGB(65, 105, 225);
    Sft_SetPictureColorSample(&days[4].Picture, 6, 6, RGB(65, 105, 225), RGB(65, 105, 225));
    days[4].lpszToolTip = TEXT("Team meeting");

    for (i = 0; i < CONTROLS; ++i) {
        SftDate_ClearSpecialDates(controls[i]);
        if (fShow)
            for (d = 0; d < 5; ++d)
                SftDate_AddSpecialDate(controls[i], &days[d]);
    }
}

static void SetColorScheme(HWND hwndCtl, BOOL fOn)

C++ View entire sample code

    days[4].date = MakeDate(monday.wYear, monday.wMonth, monday.wDay);
    days[4].recurrence = SFTDATE_RECURRENCE_WEEKLY;
    days[4].fBold = FALSE;
    days[4].colorFg = RGB(65, 105, 225);
    Sft_SetPictureColorSample(&days[4].Picture, 6, 6, RGB(65, 105, 225), RGB(65, 105, 225));
    days[4].lpszToolTip = _T("Team meeting");

    for (int i = 0; i < CONTROLS; ++i) {
        Control(i).ClearSpecialDates();
        if (fShow)
            for (int d = 0; d < 5; ++d)
                Control(i).AddSpecialDate(&days[d]);
    }
}

void CMainDlg::OnOption(UINT id)

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


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