Share via


MonthCal_SetFirstDayOfWeek

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

DWORD MonthCal_SetFirstDayOfWeek(
HWND hwndMC, 
INT iDay );

Parameters

  • hwndMC
    Handle to a month calendar control.
  • iDay
    INT value that specified which day is to be set as the first day of the week. It is one of the following values:
    Value Day
    0 Monday
    1 Tuesday
    2 Wednesday
    3 Thursday
    4 Friday
    5 Saturday
    6 Sunday

Return Values

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 message: MCM_SETFIRSTDAYOFWEEK

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h   Commctrl.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.