HeaderPane
Main
Hide
Share Link
Print

DropDownContent

Defines what the dropdown of a date field control shows.

C

int WINAPI SftDate_GetDropDownContent(HWND hwndCtl);
BOOL WINAPI SftDate_SetDropDownContent(HWND hwndCtl, int content);

C++

int CSftDate::GetDropDownContent() const;
BOOL CSftDate::SetDropDownContent(int content);

Parameters

hwndCtl

The window handle of the date field control (SftDate).

content

The content. content can be one of the following values:

SFTDATE_CONTENT_AUTOA calendar, a time list or clock, or both, depending on the format (SetFormat). This is the default.
SFTDATE_CONTENT_CALENDARA calendar.
SFTDATE_CONTENT_TIMEA time list or clock (SetTimeDropDownStyle).
SFTDATE_CONTENT_CALENDARANDTIMEA calendar and a time list or clock side by side.

Returns

GetDropDownContent returns the content, one of the values listed above.

SetDropDownContent returns TRUE if the value is valid, otherwise FALSE.

Comments

The GetDropDownContent and SetDropDownContent functions define and retrieve the content of the dropdown of a date field control. With SFTDATE_CONTENT_AUTO, a format with a date and without a time opens a calendar, a format with a time and without a date a time list or clock, and a format with both opens both.

A calendar alone closes when the user chooses a date, a time list or clock alone when the user chooses a time. With both, Tab switches between the calendar and the time, and the OK button or Enter applies the date and time together; Escape, a click outside the dropdown or leaving the field discards them.

A new content closes the dropdown if it is open. This function applies to the date field control only. For a month calendar control, GetDropDownContent returns SFTDATE_CONTENT_AUTO and SetDropDownContent has no effect and returns FALSE.

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


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