MonthCal_GetCurSel

This macro retrieves the system time portrayed by the currently selected date.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related message: MCM_GETCURSEL

Syntax

BOOL MonthCal_GetCurSel(HWND hwndMC,
LPSYSTEMTIME
lpSysTime);

Parameters

hwndMC

Handle to a month calendar control.

lpSysTime

Long pointer to a SYSTEMTIME structure that will receive the system time information.

Return Values

Nonzero indicates success. Zero indicates otherwise. This macro will always fail when applied to month calendar controls that are set to the MCS_MULTISELECT style.