SetMonthDisplayOptions()

Sets the global display options for the Month calendar control.

Token ID

AFTKN_SET_MONTH_DISPLAY_OPTIONS or 888

Syntax

VOID SetMonthDisplayOptions([ENUM FirstDayOfWeek]; 
                            [ENUM ShowWeekNumber]; 
                            [BYTE DaysToHilite])

Parameters

FirstDayofWeek As ENUM

(Optional) Shows which day of the week will be in the first column.

5

Friday

1

Monday

6

Saturday

0

Sunday

4

Thursday

2

Tuesday

3

Wednesday

ShowWeekNumber As ENUM

(Optional) Shows which week of the year marker at the left edge of the month control.

  • 0 No
  • 1 Yes
DaysToHilite As BYTE

(Optional) Changes the columns for the specified week to a red colored text. Bitwise:

0

None

1

Sun col

2

Mon col

4

Tues col

64

Sat col

65

Sat Sun cols