Removes all special dates.
C
void WINAPI SftDate_ClearSpecialDates(HWND hwndCtl);
C++
void CSftDate::ClearSpecialDates(); void CSftCalendar::ClearSpecialDates();
hwndCtl
The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.
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.
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)
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