CMonthCalCtrl::SizeRectToMin
For the current month calendar control, calculates the smallest rectangle that can contain all the calendars that fit in a specified rectangle.
LPRECT SizeRectToMin(
LPRECT lpRect
);
Parameters
Parameter |
Description |
---|---|
[in] lpRect |
Pointer to a RECT structure that defines a rectangle that contains the desired number of calendars. |
Return Value
Pointer to a RECT structure that defines a rectangle whose size is less than or equal to the rectangle defined by the lpRect parameter.
Remarks
This method calculates how many calendars can fit in the rectangle specified by the lpRect parameter, and then returns the smallest rectangle that can contain that number of calendars. In effect, this method shrinks the specified rectangle to exactly fit the desired number of calendars.
This method sends the MCM_SIZERECTTOMIN message, which is described in the Windows SDK.
Requirements
Header: afxdtctl.h
This control is supported in Windows Vista and later.
Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.