ReactOS 0.4.15-dev-7924-g5949c20
|
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "commctrl.h"
#include "comctl32.h"
#include "uxtheme.h"
#include "vssym32.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/heap.h"
Go to the source code of this file.
Classes | |
struct | _CALENDAR_INFO |
struct | MONTHCAL_INFO |
Macros | |
#define | MCS_NOSELCHANGEONNAV 0x0100 |
#define | MC_SEL_LBUTUP 1 /* Left button released */ |
#define | MC_SEL_LBUTDOWN 2 /* Left button pressed in calendar */ |
#define | MC_PREVPRESSED 4 /* Prev month button pressed */ |
#define | MC_NEXTPRESSED 8 /* Next month button pressed */ |
#define | MC_PREVNEXTMONTHDELAY |
#define | MC_TODAYUPDATEDELAY 120000 /* time between today check for update (2 min) */ |
#define | MC_PREVNEXTMONTHTIMER 1 /* Timer IDs */ |
#define | MC_TODAYUPDATETIMER 2 |
#define | MC_CALENDAR_PADDING 6 |
#define | DAYSTO100NSECS(days) (((ULONGLONG)(days))*24*60*60*10000000) |
Typedefs | |
typedef struct _CALENDAR_INFO | CALENDAR_INFO |
typedef struct MONTHCAL_INFO * | LPMONTHCAL_INFO |
Enumerations | |
enum | CachedPen { PenRed = 0 , PenText , PenLast } |
enum | CachedBrush { BrushTitle = 0 , BrushMonth , BrushBackground , BrushLast } |
enum | nav_direction { DIRECTION_BACKWARD , DIRECTION_FORWARD } |
Variables | |
static const WCHAR | themeClass [] = { 'S','c','r','o','l','l','b','a','r',0 } |
static const SYSTEMTIME | st_null |
static const SYSTEMTIME | max_allowed_date = { 9999, 12, 0, 31 } |
static const SYSTEMTIME | min_allowed_date = { 1752, 9, 0, 14 } |
Definition at line 70 of file monthcal.c.
#define MC_CALENDAR_PADDING 6 |
Definition at line 67 of file monthcal.c.
Definition at line 60 of file monthcal.c.
#define MC_PREVNEXTMONTHDELAY |
Definition at line 61 of file monthcal.c.
Definition at line 64 of file monthcal.c.
Definition at line 59 of file monthcal.c.
Definition at line 58 of file monthcal.c.
Definition at line 57 of file monthcal.c.
Definition at line 62 of file monthcal.c.
#define MC_TODAYUPDATETIMER 2 |
Definition at line 65 of file monthcal.c.
#define MCS_NOSELCHANGEONNAV 0x0100 |
Definition at line 55 of file monthcal.c.
typedef struct _CALENDAR_INFO CALENDAR_INFO |
typedef struct MONTHCAL_INFO * LPMONTHCAL_INFO |
Enumerator | |
---|---|
BrushTitle | |
BrushMonth | |
BrushBackground | |
BrushLast |
Definition at line 79 of file monthcal.c.
Enumerator | |
---|---|
PenRed | |
PenText | |
PenLast |
Definition at line 72 of file monthcal.c.
Enumerator | |
---|---|
DIRECTION_BACKWARD | |
DIRECTION_FORWARD |
Definition at line 156 of file monthcal.c.
Definition at line 2080 of file monthcal.c.
Referenced by MONTHCAL_EditYear().
|
inlinestatic |
Definition at line 1792 of file monthcal.c.
Referenced by MONTHCAL_HitTest().
|
static |
Definition at line 1156 of file monthcal.c.
Referenced by MONTHCAL_PaintCalendar(), and MONTHCAL_UpdateSize().
int MONTHCAL_CalculateDayOfWeek | ( | SYSTEMTIME * | date, |
BOOL | inplace | ||
) |
Definition at line 468 of file monthcal.c.
Referenced by DATETIME_IncreaseField(), DATETIME_SetSystemTime(), MONTHCAL_GetDayFromPos(), MONTHCAL_GetDayPos(), MONTHCAL_GetMaxDate(), MONTHCAL_GetMinDate(), MONTHCAL_GetMonth(), MONTHCAL_GetMonthRange(), MONTHCAL_HitTest(), MONTHCAL_SetCurSel(), and MONTHCAL_SetSelRange().
Definition at line 757 of file monthcal.c.
Referenced by MONTHCAL_CircleDay(), and MONTHCAL_PaintTodayTitle().
|
static |
Definition at line 775 of file monthcal.c.
Referenced by MONTHCAL_PaintFocusAndCircle().
|
static |
Definition at line 325 of file monthcal.c.
|
static |
Definition at line 313 of file monthcal.c.
Referenced by MONTHCAL_GetDayPos(), MONTHCAL_GetDayRect(), MONTHCAL_PaintFocusAndCircle(), and MONTHCAL_Scroll().
LONG MONTHCAL_CompareSystemTime | ( | const SYSTEMTIME * | first, |
const SYSTEMTIME * | second | ||
) |
Definition at line 303 of file monthcal.c.
Referenced by DATETIME_IncreaseField(), DATETIME_IsDateInValidRange(), MONTHCAL_IsDateInValidRange(), and MONTHCAL_SetSelRange().
|
static |
Definition at line 280 of file monthcal.c.
Referenced by MONTHCAL_CalculateDayOfWeek(), MONTHCAL_LButtonDown(), and MONTHCAL_MouseMove().
|
static |
Definition at line 266 of file monthcal.c.
Referenced by MONTHCAL_SetRange(), and MONTHCAL_SetSelRange().
|
static |
Definition at line 2761 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2828 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 784 of file monthcal.c.
Referenced by MONTHCAL_PaintCalendar(), and MONTHCAL_PaintLeadTrailMonths().
|
static |
Definition at line 2117 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown().
|
static |
Definition at line 2447 of file monthcal.c.
Referenced by MONTHCAL_PrintClient(), and MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 163 of file monthcal.c.
Referenced by MONTHCAL_GetCalendarFromPoint(), MONTHCAL_GetDayPos(), MONTHCAL_GetDayRect(), MONTHCAL_GetMaxDate(), MONTHCAL_GetMonthRange(), MONTHCAL_HitTest(), MONTHCAL_LButtonDown(), MONTHCAL_PaintFocusAndCircle(), MONTHCAL_PaintLeadTrailMonths(), MONTHCAL_Scroll(), MONTHCAL_SetCurSel(), MONTHCAL_SetSelRange(), MONTHCAL_UpdateSize(), and MONTHCAL_WindowProc().
|
static |
Definition at line 1773 of file monthcal.c.
Referenced by MONTHCAL_HitTest().
|
static |
|
static |
Definition at line 1541 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 563 of file monthcal.c.
Referenced by MONTHCAL_HitTest().
|
static |
Definition at line 592 of file monthcal.c.
Referenced by MONTHCAL_GetDayRect(), and MONTHCAL_HitTest().
|
static |
Definition at line 635 of file monthcal.c.
Referenced by MONTHCAL_CircleDay(), MONTHCAL_MouseMove(), MONTHCAL_PaintFocusAndCircle(), MONTHCAL_SetCurSel(), MONTHCAL_SetDayFocus(), and MONTHCAL_UpdateToday().
|
inlinestatic |
Definition at line 622 of file monthcal.c.
Referenced by MONTHCAL_GetDayRect(), MONTHCAL_HitTest(), and MONTHCAL_PaintTodayTitle().
|
inlinestatic |
Definition at line 1375 of file monthcal.c.
Referenced by MONTHCAL_SetFirstDayOfWeek(), and MONTHCAL_WindowProc().
|
static |
|
static |
Definition at line 532 of file monthcal.c.
Referenced by MONTHCAL_GetMonthRange(), and MONTHCAL_PaintLeadTrailMonths().
|
static |
|
static |
|
static |
Definition at line 509 of file monthcal.c.
Referenced by MONTHCAL_GetMonthRange(), MONTHCAL_NotifyDayState(), and MONTHCAL_PaintLeadTrailMonths().
|
static |
Definition at line 1275 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 484 of file monthcal.c.
Referenced by MONTHCAL_GetNextMonth(), MONTHCAL_GetPrevMonth(), MONTHCAL_LButtonDown(), MONTHCAL_Scroll(), MONTHCAL_SetCurSel(), MONTHCAL_SetSelRange(), and MONTHCAL_UpdateSize().
|
static |
|
static |
Definition at line 672 of file monthcal.c.
Referenced by MONTHCAL_GetMonthDelta(), MONTHCAL_NotifyDayState(), MONTHCAL_PaintLeadTrailMonths(), MONTHCAL_SetDayState(), MONTHCAL_UpdateSize(), and MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 497 of file monthcal.c.
Referenced by MONTHCAL_GetMaxDate(), MONTHCAL_HitTest(), and MONTHCAL_PaintLeadTrailMonths().
|
inlinestatic |
Definition at line 503 of file monthcal.c.
Referenced by MONTHCAL_GetMaxDate(), MONTHCAL_GetMinDate(), and MONTHCAL_HitTest().
|
static |
Definition at line 1514 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1637 of file monthcal.c.
Referenced by MONTHCAL_MouseMove(), MONTHCAL_Scroll(), and MONTHCAL_WindowProc().
|
static |
Definition at line 1720 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
inlinestatic |
|
static |
Definition at line 2007 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), and MONTHCAL_Timer().
|
static |
Definition at line 1804 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), MONTHCAL_MouseMove(), and MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 242 of file monthcal.c.
Referenced by MONTHCAL_LButtonUp(), MONTHCAL_MouseMove(), MONTHCAL_PaintFocusAndCircle(), MONTHCAL_SetCurSel(), MONTHCAL_SetDayFocus(), MONTHCAL_SetSelRange(), and MONTHCAL_UpdateToday().
|
static |
Definition at line 349 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), and MONTHCAL_SetCurSel().
|
static |
Definition at line 400 of file monthcal.c.
Referenced by MONTHCAL_MouseMove(), and MONTHCAL_SetSelRange().
|
static |
Definition at line 2152 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2273 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 208 of file monthcal.c.
Referenced by MONTHCAL_SetCurSel(), and MONTHCAL_SetSelRange().
Definition at line 215 of file monthcal.c.
Referenced by DATETIME_ApplySelectedField(), DATETIME_IncreaseField(), DATETIME_SetSystemTime(), MONTHCAL_GetDayPos(), MONTHCAL_GetMaxDate(), MONTHCAL_GetMinDate(), MONTHCAL_GetMonth(), MONTHCAL_GetMonthRange(), MONTHCAL_HitTest(), MONTHCAL_PaintCalendar(), MONTHCAL_PaintLeadTrailMonths(), and MONTHCAL_ValidateDate().
|
static |
Definition at line 2364 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2850 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1948 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_Notify(), and MONTHCAL_UpdateSize().
|
inlinestatic |
Definition at line 189 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), and MONTHCAL_RButtonUp().
|
inlinestatic |
Definition at line 169 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), MONTHCAL_Notify(), MONTHCAL_RButtonUp(), and MONTHCAL_Timer().
|
static |
Definition at line 2428 of file monthcal.c.
Referenced by MONTHCAL_PrintClient(), and MONTHCAL_WindowProc().
|
static |
Definition at line 827 of file monthcal.c.
|
static |
Definition at line 1169 of file monthcal.c.
|
static |
Definition at line 1093 of file monthcal.c.
|
static |
Definition at line 1117 of file monthcal.c.
|
static |
Definition at line 865 of file monthcal.c.
|
static |
Definition at line 1059 of file monthcal.c.
|
static |
Definition at line 948 of file monthcal.c.
|
static |
Definition at line 2459 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2037 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1227 of file monthcal.c.
Referenced by MONTHCAL_Paint().
Definition at line 3035 of file monthcal.c.
Referenced by DllMain().
|
static |
Definition at line 1972 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), and MONTHCAL_Notify().
|
static |
Definition at line 1305 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1553 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), MONTHCAL_RButtonUp(), MONTHCAL_Scroll(), and MONTHCAL_WindowProc().
|
static |
Definition at line 729 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_LButtonUp(), and MONTHCAL_MouseMove().
|
static |
Definition at line 1528 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1403 of file monthcal.c.
Referenced by MONTHCAL_Create(), and MONTHCAL_WindowProc().
|
static |
Definition at line 2476 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2684 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1623 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1363 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1454 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 1656 of file monthcal.c.
Referenced by MONTHCAL_LButtonDown(), MONTHCAL_MouseMove(), MONTHCAL_RButtonUp(), MONTHCAL_Scroll(), and MONTHCAL_WindowProc().
|
static |
Definition at line 1759 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
inlinestatic |
Definition at line 2869 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2669 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2715 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2732 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2330 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
|
static |
Definition at line 2486 of file monthcal.c.
Referenced by MONTHCAL_Create().
|
static |
Definition at line 1737 of file monthcal.c.
Referenced by MONTHCAL_SetToday(), and MONTHCAL_Timer().
|
static |
Definition at line 249 of file monthcal.c.
Referenced by MONTHCAL_GetDayRect(), MONTHCAL_SetCurSel(), MONTHCAL_SetDayFocus(), and MONTHCAL_SetRange().
|
static |
Definition at line 444 of file monthcal.c.
Referenced by MONTHCAL_SetRange(), and MONTHCAL_SetSelRange().
|
static |
Definition at line 2883 of file monthcal.c.
Referenced by MONTHCAL_Register().
|
static |
Definition at line 2707 of file monthcal.c.
Referenced by MONTHCAL_WindowProc().
WINE_DEFAULT_DEBUG_CHANNEL | ( | monthcal | ) |
|
static |
Definition at line 152 of file monthcal.c.
Referenced by MONTHCAL_EditYear(), and MONTHCAL_IsDateInValidRange().
|
static |
Definition at line 153 of file monthcal.c.
Referenced by MONTHCAL_EditYear(), MONTHCAL_GetMonthRange(), MONTHCAL_IsDateInValidRange(), and MONTHCAL_MonthLength().
|
static |
Definition at line 150 of file monthcal.c.
Referenced by MONTHCAL_CalculateDayOfWeek(), MONTHCAL_HitTest(), MONTHCAL_NotifySelect(), MONTHCAL_NotifySelectionChange(), MONTHCAL_PaintFocusAndCircle(), MONTHCAL_SetDayFocus(), and MONTHCAL_SetRange().
Definition at line 147 of file monthcal.c.
Referenced by MONTHCAL_Create(), and theme_changed().