HeaderPane
Main
Hide
Share Link
Print

SpecialDate

Retrieves or replaces a special date.

C

BOOL WINAPI SftDate_GetSpecialDate(HWND hwndCtl, int index, LPSFTDATE_SPECIALDATE lpSpecialDate);
BOOL WINAPI SftDate_SetSpecialDate(HWND hwndCtl, int index, LPCSFTDATE_SPECIALDATE lpSpecialDate);

C++

BOOL CSftDate::GetSpecialDate(int index, LPSFTDATE_SPECIALDATE lpSpecialDate) const;
BOOL CSftCalendar::GetSpecialDate(int index, LPSFTDATE_SPECIALDATE lpSpecialDate) const;
BOOL CSftDate::SetSpecialDate(int index, LPCSFTDATE_SPECIALDATE lpSpecialDate);
BOOL CSftCalendar::SetSpecialDate(int index, LPCSFTDATE_SPECIALDATE lpSpecialDate);

Parameters

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 index of the special date.

lpSpecialDate

A pointer to an SFTDATE_SPECIALDATE structure that receives (GetSpecialDate) or holds (SetSpecialDate) the special date. Its cbSize member must be set to sizeof(SFTDATE_SPECIALDATE).

Returns

The return value is TRUE if successful. FALSE is returned if index is out of range or the structure is not valid.

Comments

The GetSpecialDate and SetSpecialDate functions retrieve and replace the special date at a given position.

GetSpecialDate returns the time of date as 00:00:00. The lpszToolTip member points to a copy of the tooltip text that remains valid until GetSpecialDate is called again on the same thread; it is NULL if the special date has no tooltip.

SetSpecialDate 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


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