Creating the Month Calendar Control
How the month calendar control is created depends on whether you are using the control in a dialog box or creating it in a nondialog window.
To use CMonthCalCtrl directly in a dialog box
In the dialog editor, add a Month Calendar Control to your dialog template resource. Specify its control ID.
Specify any styles required, using the Properties dialog box of the month calendar control.
Use ClassWizard to add a member variable of type with the Control property. You can use this member to call CMonthCalCtrl member functions.
Use ClassWizard to map handler functions in the dialog class for any month calendar control notification messages you need to handle.
In , set any additional styles for the CMonthCalCtrl object.
To use CMonthCalCtrl in a nondialog window