Compartir a través de


MCM_SETFIRSTDAYOFWEEK

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message sets the first day of the week for a month calendar control.

Syntax

MCM_SETFIRSTDAYOFWEEK wParam = 0;
    lParam = (LPARAM)(INT) iDay;

Parameters

  • wParam
    Not used.
  • iDay
    INT value representing which day is to be set as the first day of the week. It is one of the following values.

    Value Day of the week

    0

    Sunday

    1

    Monday

    2

    Tuesday

    3

    Wednesday

    4

    Thursday

    5

    Friday

    6

    Saturday

Return Value

Returns a DWORD value that contains two values. The high-order word is a BOOL that is nonzero if the previous first day of the week did not equal LOCALE_IFIRSTDAYOFWEEK, or zero otherwise. The low-order word is an INT value that represents the previous day of the week number (see list under iDay).

Remarks

If the first day of the week is set to anything other than the default (LOCALE_IFIRSTDAYOFWEEK), the control will not automatically update first-day-of-the-week changes based on locale changes.

Related macro: MonthCal_SetFirstDayOfWeek

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later