Inserts a special date into the list of special dates.
C
BOOL WINAPI SftDate_InsertSpecialDate(HWND hwndCtl, int index, LPCSFTDATE_SPECIALDATE lpSpecialDate);C++
BOOL CSftDate::InsertSpecialDate(int index, LPCSFTDATE_SPECIALDATE lpSpecialDate); BOOL CSftCalendar::InsertSpecialDate(int index, LPCSFTDATE_SPECIALDATE lpSpecialDate);
hwndCtl
The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.
index
The zero-based position of the new special date, 0 through the number of special dates (GetSpecialDateCount).
lpSpecialDate
A pointer to an SFTDATE_SPECIALDATE structure that describes the special date. Its cbSize member must be set to sizeof(SFTDATE_SPECIALDATE).
The return value is TRUE if the special date was inserted. FALSE is returned if index is out of range or the structure is not valid.
The InsertSpecialDate function inserts a special date at the given position. Special dates at that position and after it move up by one.
When several special dates apply to a day, the first one in the list is used, so inserting a special date in front of others gives it priority.
The control copies the structure and the tooltip text, but not the picture (see AddSpecialDate). Special dates apply to a month calendar control and to the dropdown calendar of a date field control.
See Also C/C++ API | Categories | Notifications