MonthCal_GetMaxTodayWidth macro

Retrieves the maximum width of the "today" string in a month calendar control. This includes the label text and the date text. You can use this macro or send the MCM_GETMAXTODAYWIDTH message explicitly.

Syntax


DWORD MonthCal_GetMaxTodayWidth(
   HWND hwndMC
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

Return value

Returns the width of the "today" string, in pixels.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: