Partager via


MonthCal_GetMinReqRect (Compact 2013)

3/28/2014

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.

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 Value

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

Header

commctrl.h

See Also

Reference

Month Calendar Controls Macros
RECT