HeaderPane
Main
Hide
Share Link
Print

ScrollIntoView

Scrolls a month calendar control so that a date is shown.

C

BOOL WINAPI SftDate_ScrollIntoView(HWND hwndCtl, const SYSTEMTIME* lpValue);

C++

BOOL CSftCalendar::ScrollIntoView(const SYSTEMTIME* lpValue);

Parameters

hwndCtl

The window handle of the month calendar control (SftCalendar).

lpValue

A pointer to a SYSTEMTIME structure that holds the date.

Returns

The return value is TRUE if successful, or FALSE if hwndCtl is not a month calendar control or lpValue is not a valid date.

Comments

The ScrollIntoView function scrolls the calendar so that the period containing the date is shown, if it isn't shown already. A date outside the range defined using SetMinDate and SetMaxDate is replaced by the nearest date within it. The selection and the focused date are not changed.

This function applies to the month calendar control only. For a date field control, ScrollIntoView has no effect and returns FALSE.

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


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