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
11 #define MC_SEL_LBUTUP 0 /* Left button released */
12 #define MC_SEL_LBUTDOWN 1 /* Left button pressed */
14 typedef struct tagMONTHCAL_INFO
26 int firstDayplace; /* place of the first day of the current month */
27 int delta; /* scroll rate; # of months that the */
28 /* control moves when user clicks a scroll button */
29 int visible; /* # of months visible */
30 int firstDay; /* Start month calendar with firstDay's day */
32 MONTHDAYSTATE *monthdayState;
33 SYSTEMTIME todaysDate;
36 int selValid; /* See MC_SEL flags */
37 int curSelDay; /* current selected day */
38 int firstSelDay; /* first selected day */
46 RECT rcClient; /* rect for whole client area */
47 RECT title; /* rect for the header above the calendar */
48 RECT titlebtnnext; /* the `next month' button in the header */
49 RECT titlebtnprev; /* the `prev month' button in the header */
50 RECT titlemonth; /* the `month name' txt in the header */
51 RECT titleyear; /* the `year number' txt in the header */
52 RECT prevmonth; /* day numbers of the previous month */
53 RECT nextmonth; /* day numbers of the next month */
54 RECT days; /* week numbers at left side */
55 RECT weeknums; /* week numbers at left side */
56 RECT today; /* `today: xx/xx/xx' text rect */
57 } MONTHCAL_INFO, *LPMONTHCAL_INFO;
60 extern VOID MONTHCAL_Register (VOID);
61 extern VOID MONTHCAL_Unregister (VOID);
63 #endif /* __WINE_MONTHCAL_H */