MonthCal_GetMinReqRect (Windows CE 5.0)

Send Feedback

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.

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.

Related message:MCM_GETMINREQRECT

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.

See Also

RECT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.