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;The part. For a month calendar control, one of the following values:
| SFTDATE_CALHIT_NOWHERE | Outside the control. |
| SFTDATE_CALHIT_BACKGROUND | The background, outside any other part. |
| SFTDATE_CALHIT_TITLE | The title of a month, year, decade or century. |
| SFTDATE_CALHIT_PREVIOUSBUTTON, SFTDATE_CALHIT_NEXTBUTTON | The navigation buttons. |
| SFTDATE_CALHIT_DAYOFWEEK | A day of week header. |
| SFTDATE_CALHIT_WEEKNUMBER | A week number. |
| SFTDATE_CALHIT_DAY | A day of the month. |
| SFTDATE_CALHIT_TRAILINGDAY | A day of the previous or next month (SetShowTrailingDates). |
| SFTDATE_CALHIT_PERIOD | A month, year or decade in the year, decade or century view. |
| SFTDATE_CALHIT_TODAYBUTTON, SFTDATE_CALHIT_CLEARBUTTON | The Today and Clear buttons. |
For a date field control, one of the following values:
| SFTDATE_FIELDHIT_NOWHERE | Outside the control. |
| SFTDATE_FIELDHIT_TEXT | The text, outside an editable part. |
| SFTDATE_FIELDHIT_SEGMENT | An editable part of the value (segment editing). |
| SFTDATE_FIELDHIT_CHECKBOX | The check box. |
| SFTDATE_FIELDHIT_CLEARBUTTON | The Clear button. |
| SFTDATE_FIELDHIT_DROPDOWNBUTTON | The dropdown button. |
| SFTDATE_FIELDHIT_UPBUTTON, SFTDATE_FIELDHIT_DOWNBUTTON | The up/down buttons. |
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.
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.
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