CMonthCalCtrl::SetCurSel

This method sets the currently selected date for a month calendar control. If the specified date is not in view, the control updates the display to bring it into view.

At a Glance

Header file: Afxdtctl.h
Platforms: H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL SetCurSel( const COleDateTime& refDateTime );

BOOL SetCurSel( const CTime& refDateTime );

BOOL SetCurSel( const LPSYSTEMTIME pDateTime );