HeaderPane
Main
Hide
Share Link
Print

SingleMonthSize

Returns the size of a month calendar control showing one month.

C

void WINAPI SftDate_GetSingleMonthSize(HWND hwndCtl, LPSIZE lpSize);

C++

void CSftCalendar::GetSingleMonthSize(LPSIZE lpSize) const;

Parameters

hwndCtl

The window handle of the month calendar control (SftCalendar).

lpSize

A pointer to a SIZE structure that receives the width and height in pixels.

Comments

The GetSingleMonthSize function returns the window size a month calendar control needs to show one month with its current settings, fonts, Today and Clear buttons and border. An application uses it to decide how many months fit into an area (SetMonthsAcross, SetMonthsDown).

GetPreferredSize returns the size for all months shown. The size depends on the DPI of the monitor (GetDPI). If hwndCtl is not a month calendar control, the size is 0.

See Also C/C++ API | Categories | Notifications


Last Updated 11/26/2026 - (email)
© 2026 Softel vdm, Inc.