This macro retrieves the minimum size required to display a full month in a month calendar control. Size information is presented in the form of a RECT structure.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 2.0 and later |
Related message: | MCM_GETMINREQRECT |
Syntax
BOOL MonthCal_GetMinReqRect(HWND hwndMC, LPRECT lpRectInfo);
Parameters
hwndMC
Handle to a month calendar control.
lpRectInfo
Long pointer to a RECT structure that will receive bounding rectangle information.
Return Values
Returns nonzero and lpRectInfo receives the applicable bounding information if successful. Otherwise, the macro returns zero.
Remarks
The top and left members of the RECT structure specified by lpRectInfo will always be zero. The right and i members represent the minimum cx and cy required for the control.
The minimum required window size for a month calendar control depends on the currently selected font.