Winstyle

This parameter may be used to specify additional style options relating to the window wrapper for the control, as well as options specific to the calendar:

Option

Value

Description

MCS_DAYSTATE

&h0000001

Enable day state highlighting; see next topic.

MCS_WEEKNUMBERS

&h0000004

Show week numbers in calendar.

MCS_NOTODAYCIRCLE

&h0000008

Don't circle today's date.

MCS_NOTODAY

&h0000010

Don't show today's date at bottom of calendar.

 

 

 

WS_BORDER

&h0800000

Put a thin border around it.

WS_DLGFRAME

&h0400000

Put a dialog-style border around it.

WS_CAPTION

&h0C00000

Add a title bar; allows dragging.

WS_SYSMENU

&h0080000

Add an X button to close calendar.

WS_VSSCROLL

&h0200000

Adds a vertical scroll bar to the dialog; see Dialog Scrolling.

 

WS_THICKFRAME may be added to the winstyle parameter when creating static controls to give them a raised panel effect. This is the visual reverse of WS_EX_CLIENTEDGE. It isn't clear whether any other control types can benefit from this option, but it probably won't hurt to try.