Share via


MonthCal_GetMinReqRect

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

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h   Commctrl.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

RECT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.