Compartilhar via


MonthCal_GetMinReqRect

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

RECT