2 * Month calendar class extra info
4 * Copyright 1998 Eric Kohl
5 * Copyright 1999 Alex Priem
8 #ifndef __WINE_MONTHCAL_H
9 #define __WINE_MONTHCAL_H
16 #define MC_SEL_LBUTUP 1 /* Left button released */
17 #define MC_SEL_LBUTDOWN 2 /* Left button pressed in calendar */
18 #define MC_PREVPRESSED 4 /* Prev month button pressed */
19 #define MC_NEXTPRESSED 8 /* Next month button pressed */
20 #define MC_NEXTMONTHDELAY 350 /* when continuously pressing `next */
21 /* month', wait 500 ms before going */
22 /* to the next month */
23 #define MC_NEXTMONTHTIMER 1 /* Timer ID's */
24 #define MC_PREVMONTHTIMER 2
26 typedef struct tagMONTHCAL_INFO
42 int firstDayplace
; /* place of the first day of the current month */
43 int delta
; /* scroll rate; # of months that the */
44 /* control moves when user clicks a scroll button */
45 int visible
; /* # of months visible */
46 int firstDay
; /* Start month calendar with firstDay's day */
48 MONTHDAYSTATE
*monthdayState
;
49 SYSTEMTIME todaysDate
;
52 int status
; /* See MC_SEL flags */
53 int curSelDay
; /* current selected day */
54 int firstSelDay
; /* first selected day */
62 RECT rcClient
; /* rect for whole client area */
63 RECT title
; /* rect for the header above the calendar */
64 RECT titlebtnnext
; /* the `next month' button in the header */
65 RECT titlebtnprev
; /* the `prev month' button in the header */
66 RECT titlemonth
; /* the `month name' txt in the header */
67 RECT titleyear
; /* the `year number' txt in the header */
68 RECT prevmonth
; /* day numbers of the previous month */
69 RECT nextmonth
; /* day numbers of the next month */
70 RECT days
; /* week numbers at left side */
71 RECT weeknums
; /* week numbers at left side */
72 RECT today
; /* `today: xx/xx/xx' text rect */
73 } MONTHCAL_INFO
, *LPMONTHCAL_INFO
;
76 extern void MONTHCAL_CopyTime (const SYSTEMTIME
*from
, SYSTEMTIME
*to
);
77 extern int MONTHCAL_CalculateDayOfWeek (DWORD day
, DWORD month
, DWORD year
);
78 extern char *daytxt
[];
79 extern char *monthtxt
[];
80 extern void MONTHCAL_Register (void);
81 extern void MONTHCAL_Unregister (void);
83 #endif /* __WINE_MONTHCAL_H */