Contents Index Topic Contents | ||
Previous Topic: Month Calendar Control Structures Next Topic: NMDAYSTATE |
MCHITTESTINFO
typedef struct { UINT cbSize; POINT pt; UINT uHit; // An output member SYSTEMTIME st; // An output member } MCHITTESTINFO, *PMCHITTESTINFO;Carries information specific to hit-testing points for a month calendar control. This structure is used with the MCM_HITTEST message and the corresponding MonthCal_HitTest macro.
- cbSize
- Size of this structure, in bytes.
- pt
- POINT structure that contains information about the point to be hit-tested.
- uHit
- Output member that receives a bit flag representing the result of the hit-test operation. This value will be one of the following:
MCHT_CALENDARBK The given point was in the calendar's background. MCHT_CALENDARDATE The given point was on a particular date within the calendar. The SYSTEMTIME structure at lpMCHitTest->st is set to the date at the given point. MCHT_CALENDARDATENEXT The given point was over a date from the next month (partially displayed at the end of the currently displayed month). If the user clicks here, the month calendar will scroll its display to the next month or set of months. MCHT_CALENDARDATEPREV The given point was over a date from the previous month (partially displayed at the end of the currently displayed month). If the user clicks here, the month calendar will scroll its display to the previous month or set of months. MCHT_CALENDARDAY The given point was over a day abbreviation ("Fri", for example). The SYSTEMTIME structure at lpMCHitTest->st is set to the corresponding date in the top row. MCHT_CALENDARWEEKNUM The given point was over a week number (MCS_WEEKNUMBERS style only). The SYSTEMTIME structure at lpMCHitTest->st is set to the corresponding date in the leftmost column. MCHT_NOWHERE The given point was not on the month calendar control, or it was in an inactive portion of the control. MCHT_TITLEBK The given point was over the background of a month's title. MCHT_TITLEBTNNEXT The given point was over the button at the top right corner of the control. If the user clicks here, the month calendar will scroll its display to the next month or set of months. MCHT_TITLEBTNPREV The given point was over the button at the top left corner of the control. If the user clicks here, the month calendar will scroll its display to the previous month or set of months. MCHT_TITLEMONTH The given point was in a month's title bar, over a month name. MCHT_TITLEYEAR The given point was in a month's title bar, over the year value. - st
- SYSTEMTIME structure that receives date and time information specific to the location that was hit-tested.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.