Separated stuff for shv background contextmenu to separate file.
[wine.git] / include / monthcal.h
blobfae427323a430ac34e88535e2261cf886852e876
1 /*
2 * Month calendar class extra info
4 * Copyright 1998 Eric Kohl
5 * Copyright 1999 Alex Priem
6 */
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
16 COLORREF bk;
17 COLORREF txt;
18 COLORREF titlebk;
19 COLORREF titletxt;
20 COLORREF monthbk;
21 COLORREF trailingtxt;
22 HFONT hFont;
23 HFONT hBoldFont;
24 int textHeight;
25 int textWidth;
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 */
31 int monthRange;
32 MONTHDAYSTATE *monthdayState;
33 SYSTEMTIME todaysDate;
34 DWORD currentMonth;
35 DWORD currentYear;
36 int selValid; /* See MC_SEL flags */
37 int curSelDay; /* current selected day */
38 int firstSelDay; /* first selected day */
39 int maxSelCount;
40 SYSTEMTIME minSel;
41 SYSTEMTIME maxSel;
42 DWORD rangeValid;
43 SYSTEMTIME minDate;
44 SYSTEMTIME maxDate;
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 */