HeaderPane
Main
Hide
Share Link
Print

SFTDATE_HITTEST Structure

The SFTDATE_HITTEST structure receives the part of a control at a point, as returned by HitTest.

typedef struct tagSftDateHitTest {
    int area;
    BOOL fHasDate;
    SYSTEMTIME date;
} SFTDATE_HITTEST, * LPSFTDATE_HITTEST;

Members

area

The part. For a month calendar control, one of the following values:

SFTDATE_CALHIT_NOWHEREOutside the control.
SFTDATE_CALHIT_BACKGROUNDThe background, outside any other part.
SFTDATE_CALHIT_TITLEThe title of a month, year, decade or century.
SFTDATE_CALHIT_PREVIOUSBUTTON, SFTDATE_CALHIT_NEXTBUTTONThe navigation buttons.
SFTDATE_CALHIT_DAYOFWEEKA day of week header.
SFTDATE_CALHIT_WEEKNUMBERA week number.
SFTDATE_CALHIT_DAYA day of the month.
SFTDATE_CALHIT_TRAILINGDAYA day of the previous or next month (SetShowTrailingDates).
SFTDATE_CALHIT_PERIODA month, year or decade in the year, decade or century view.
SFTDATE_CALHIT_TODAYBUTTON, SFTDATE_CALHIT_CLEARBUTTONThe Today and Clear buttons.

For a date field control, one of the following values:

SFTDATE_FIELDHIT_NOWHEREOutside the control.
SFTDATE_FIELDHIT_TEXTThe text, outside an editable part.
SFTDATE_FIELDHIT_SEGMENTAn editable part of the value (segment editing).
SFTDATE_FIELDHIT_CHECKBOXThe check box.
SFTDATE_FIELDHIT_CLEARBUTTONThe Clear button.
SFTDATE_FIELDHIT_DROPDOWNBUTTONThe dropdown button.
SFTDATE_FIELDHIT_UPBUTTON, SFTDATE_FIELDHIT_DOWNBUTTONThe up/down buttons.

fHasDate

TRUE if date holds a date: for a day, a trailing day, a period, a title or a week number of a month calendar control.

date

The date of the day, the first day of the period or of the title's period, or the first day of the week of a week number.

Comments

HitTest clears the structure before it fills it. The values of the two controls overlap, so the window class of the control determines which set applies.

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


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