CMonthCal.SetFirstDayOfWeekmethod
Sets the first day of the week for a month calendar control.
Syntax
FUNCTION SetFirstDayOfWeek (BYVAL hMonthCal AS HWND, BYVAL iDay AS LONG) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hMonthCal | Handle to a month calendar control. | |
iDay | Value that specifies which day is to be set as the first day of the week, where 0 is Monday, 1 is Tuesday, and so on. |
Return value
Returns a DWORD value that contains two values. The high word is a BOOL value that is nonzero if the previous first day of the week did not equal LOCALE_IFIRSTDAYOFWEEK, or zero otherwise. The low word is an INT value that represents the previous first day of the week.
Description
Sets the first day of the week for a month calendar control.
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.
Reference
- Include file
CMontCal.inc - Defined in AfxNova/CMonthCal.inc:261
- Documented in Windows/WIndows Controls/CMonthCal Class.md
- Topic: CMonthCal Class