Skip to content

Latest commit

 

History

History
272 lines (215 loc) · 7.33 KB

ns-commctrl-mcgridinfo.md

File metadata and controls

272 lines (215 loc) · 7.33 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:commctrl.tagMCGRIDINFO
MCGRIDINFO (commctrl.h)
Contains information about part of a calendar control.
*PMCGRIDINFO
MCGIF_DATE
MCGIF_NAME
MCGIF_RECT
MCGIP_CALENDAR
MCGIP_CALENDARBODY
MCGIP_CALENDARCELL
MCGIP_CALENDARCONTROL
MCGIP_CALENDARHEADER
MCGIP_CALENDARROW
MCGIP_FOOTER
MCGIP_NEXT
MCGIP_PREV
MCGRIDINFO
MCGRIDINFO structure [Windows Controls]
PMCGRIDINFO
PMCGRIDINFO structure pointer [Windows Controls]
_shell_MCGRIDINFO
_shell_MCGRIDINFO_cpp
commctrl/MCGRIDINFO
commctrl/PMCGRIDINFO
controls.MCGRIDINFO
controls._shell_MCGRIDINFO
controls\MCGRIDINFO.htm
Controls
VS|Controls|~\controls\monthcal\structures\mcgridinfo.htm
12/05/2018
*PMCGRIDINFO, MCGIF_DATE, MCGIF_NAME, MCGIF_RECT, MCGIP_CALENDAR, MCGIP_CALENDARBODY, MCGIP_CALENDARCELL, MCGIP_CALENDARCONTROL, MCGIP_CALENDARHEADER, MCGIP_CALENDARROW, MCGIP_FOOTER, MCGIP_NEXT, MCGIP_PREV, MCGRIDINFO, MCGRIDINFO structure [Windows Controls], PMCGRIDINFO, PMCGRIDINFO structure pointer [Windows Controls], _shell_MCGRIDINFO, _shell_MCGRIDINFO_cpp, commctrl/MCGRIDINFO, commctrl/PMCGRIDINFO, controls.MCGRIDINFO, controls._shell_MCGRIDINFO
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
MCGRIDINFO, *PMCGRIDINFO
19H1
tagMCGRIDINFO
commctrl/tagMCGRIDINFO
PMCGRIDINFO
commctrl/PMCGRIDINFO
MCGRIDINFO
commctrl/MCGRIDINFO
c++
APIRef
kbSyntax
HeaderDef
Commctrl.h
MCGRIDINFO

MCGRIDINFO structure

-description

Contains information about part of a calendar control.

-struct-fields

-field cbSize

Type: UINT

Size of this structure, in bytes.

-field dwPart

Type: DWORD

The part of the calendar control for which information is being requested. One of the following values.

Value Meaning
MCGIP_CALENDARCONTROL
The entire calendar control, which may include up to 12 calendars.
MCGIP_NEXT
The next button.
MCGIP_PREV
The previous button.
MCGIP_FOOTER
The footer.
MCGIP_CALENDAR
One specific calendar. Used with iCalendar and pszName.
MCGIP_CALENDARHEADER
Calendar header. Used with iCalendar and pszName.
MCGIP_CALENDARBODY
Calendar body. Used with iCalendar.
MCGIP_CALENDARROW
A given calendar row. Used with iCalendar and iRow.
MCGIP_CALENDARCELL
A given calendar cell. Used with iCalendar, iRow, iCol, bSelected and pszName.

-field dwFlags

Type: DWORD

Indicates what information is to be filled in. A combination of one or more of the following values.

Value Meaning
MCGIF_DATE
stStart and stEnd.
MCGIF_RECT
rc.
MCGIF_NAME
pszName.

-field iCalendar

Type: int

If dwPart is MCGIP_CALENDAR, MCGIP_CALENDARHEADER, MCGIP_CALENDARBODY, MCGIP_CALENDARROW, or MCGIP_CALENDARCELL, this member specifies the index of the calendar for which to retrieve information. For those parts, this must be a valid value even if there is only one calendar that is currently in the control.

-field iRow

Type: int

If dwPart is MCGIP_CALENDARROW, specifies the row for which to return information.

-field iCol

Type: int

If dwPart is MCGIP_CALENDARCELL, specifies the column of the cell for which to return information. The iRow member provides the row of the cell for which to return information.

-field bSelected

Type: BOOL

If dwPart is MCGIP_CALENDARCELL, indicates if the cell described by iRow and iCol is currently selected.

-field stStart

Type: SYSTEMTIME

Returns the start date specified by iCalendar. Used only when dwFlags contains MCGIF_DATE.

-field stEnd

Type: SYSTEMTIME

Returns the end date specified by iCalendar. Used only when dwFlags contains MCGIF_DATE.

-field rc

Type: RECT

Returns the rectangle of the part specified in dwPart. Set only if dwFlags contains MCGIF_RECT.

-field pszName

Type: PWSTR

Pointer to a string for which cchName is the length. Set only if dwFlags contains MCGIF_NAME, and only for the following parts, as described in the dwPart member.

  • MCGIP_CALENDAR: Returns the text of the selected dates. In the case of multiple selection, returns the date at the start of the selection.
  • MCGIP_CALENDARCELL: Returns the text of the cell indicated by iRow and iCol, for instance "11" if the 11th day was specified.
  • MCGIP_CALENDARHEADER: Returns the text of what it says in the calendar header, for instance "July, 2006".

-field cchName

Type: size_t

Length of pszName, in characters.