MonthCal_GetToday macro

Retrieves the date information for the date specified as "today" for a month calendar control. You can use this macro or send the MCM_GETTODAY message explicitly.

Syntax


BOOL MonthCal_GetToday(
  HWND hwndMC,
  LPSYSTEMTIME lpToday
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

lpToday

Type: LPSYSTEMTIME

Pointer to a SYSTEMTIME structure that will receive the date information. The time members of this structure will not be modified. This parameter must be a valid address and cannot be NULL.

Return value

Returns nonzero if successful, or zero otherwise.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft