SECCalendar::SetBehaviorMode

BOOLSECCalendar::SetBehaviorMode(longm)

Sets the current behavior mode. Valid flags include:

Defined in: Calendar.cpp

Return Value

Nonzero if the behavior mode was set correctly, otherwise 0.

Parameters

m

Behavior mode flags bitwise-OR'ed together.

SECBM_AUTOSIZE_FONT

Automatically sizes the font to fit the window.

SECBM_AUTOSIZE_RECT

Automatically sizes the rectangle to fit the parent window.

SECBM_SINGLE_DATE

Only allows a single date to be selected.

SECBM_MONTH_BUTTONS

Displays the buttons used to scroll one month forward or one month backward.

SECBM_YEAR_BUTTONS

Displays the buttons used to scroll one year forward or one year backward.

SECBM_KEYBOARD_CONTROL

Allows navigation of the calendar using the keyboard.

SECBM_MONTH_FROZEN

Freezes the currently displayed month.

SECBM_AUTO_HIDE

Sets the auto hide mode of the calendar. If set, the calendar will hide itself after a day is selected.

See Also

SECCalendar  GetBehaviorMode