Windows Dev Center

MonthCal_SizeRectToMin macro

Calculates how many calendars will fit in the given rectangle, and then returns the minimum size that a rectangle needs to be to fit that number of calendars. You can use this macro or send the MCM_SIZERECTTOMIN message explicitly.

Syntax


LRESULT MonthCal_SizeRectToMin(
            HWND hmc,
  [in, out] RECT prc
);

Parameters

hmc

Type: HWND

Handle to a month calendar control.

prc [in, out]

Type: RECT

On entry, contains a pointer to a RECT structure that describes a region that is greater than or equal to the size necessary to fit the desired number of calendars. When this function returns, contains the minimum RECT structure that fits this number of calendars.

Return value

Unused.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft