Please enable JavaScript to view this site.

A-Shell Reference

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_MULTISELECT

&h0000002

(not yet supported)

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.

MCS_NOTRAILINGDATES

&h0000040

Disable display of dates in prev/next month

MCS_SHORTDAYSOFWEEK

&h0000080

Display short day names in header

MCS_NOSELCHANGEONNAV

&h0000100

Don't change selection when navigating next/prev

 

 

 

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.