HeaderPane
Main
Hide
Share Link
Print

HitTest

Returns the part of a control at a point.

C

void WINAPI SftDate_HitTest(HWND hwndCtl, POINT pt, LPSFTDATE_HITTEST lpHitTest);

C++

void CSftDate::HitTest(POINT pt, LPSFTDATE_HITTEST lpHitTest);
void CSftCalendar::HitTest(POINT pt, LPSFTDATE_HITTEST lpHitTest);

Parameters

hwndCtl

The window handle of the date field control (SftDate) or the month calendar control (SftCalendar).

pt

The point, in client coordinates of the control.

lpHitTest

A pointer to an SFTDATE_HITTEST structure that receives the part (SFTDATE_CALHIT_xxx for a month calendar control, SFTDATE_FIELDHIT_xxx for a date field control) and, for days, periods, titles and week numbers of a calendar, the date.

Comments

The HitTest function returns the part of a control at a point, for example to show a context menu or a tooltip for a day. See SFTDATE_HITTEST for the parts.

For a date field control, the dropdown is not part of the control; points in the dropdown return SFTDATE_FIELDHIT_NOWHERE.

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


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