Export (0) Print
Expand All

MonthCal_GetCurSel macro

Retrieves the currently selected date. You can use this macro or send the MCM_GETCURSEL message explicitly.

Syntax


BOOL MonthCal_GetCurSel(
  HWND hwndMC,
  LPSYSTEMTIME lpSysTime
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

lpSysTime

Type: LPSYSTEMTIME

Pointer to a SYSTEMTIME structure that will receive the currently selected date information. This parameter must be a valid address and cannot be NULL.

Return value

Returns nonzero if successful, or zero otherwise. This macro will always fail when applied to month calendar controls that are set to the MCS_MULTISELECT style.

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