Ignore:
Timestamp:
Nov 17, 2000, 3:32:50 PM (25 years ago)
Author:
sandervl
Message:

header updates for comctl32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/monthcal.h

    r3143 r4608  
    1 /* $Id: monthcal.h,v 1.4 2000-03-17 17:10:51 cbratschi Exp $ */
     1/* $Id: monthcal.h,v 1.5 2000-11-17 14:32:50 sandervl Exp $ */
    22
    33/*
     
    1111#define __WINE_MONTHCAL_H
    1212
    13 #define MC_SEL_LBUTUP       1   /* Left button released */
    14 #define MC_SEL_LBUTDOWN     2   /* Left button pressed in calendar */
    15 #define MC_PREVPRESSED      4   /* Prev month button pressed */
    16 #define MC_NEXTPRESSED      8   /* Next month button pressed */
    17 #define MC_NEXTMONTHDELAY   350 /* when continuously pressing `next */
    18                                                                                 /* month', wait 500 ms before going */
    19                                                                                 /* to the next month */
    20 #define MC_NEXTMONTHTIMER   1                   /* Timer ID's */
    21 #define MC_PREVMONTHTIMER   2
     13#ifdef __cplusplus
     14extern "C" {
     15#endif
    2216
    23 typedef struct tagMONTHCAL_INFO
    24 {
    25     COMCTL32_HEADER header;
     17VOID MONTHCAL_Register (VOID);
     18VOID MONTHCAL_Unregister (VOID);
    2619
    27     COLORREF    bk;
    28     COLORREF    txt;
    29     COLORREF    titlebk;
    30     COLORREF    titletxt;
    31     COLORREF    monthbk;
    32     COLORREF    trailingtxt;
    33     HFONT       hFont;
    34     HFONT       hBoldFont;
    35     int         textHeight;
    36     int         textWidth;
    37     int         height_increment;
    38     int         width_increment;
    39     int         left_offset;
    40     int         top_offset;
    41     int         firstDayplace; /* place of the first day of the current month */
    42     int         delta;  /* scroll rate; # of months that the */
    43                         /* control moves when user clicks a scroll button */
    44     int         visible;        /* # of months visible */
    45     int         firstDay;       /* Start month calendar with firstDay's day */
    46     int         monthRange;
    47     MONTHDAYSTATE *monthdayState;
    48     SYSTEMTIME  todaysDate;
    49     DWORD       currentMonth;
    50     DWORD       currentYear;
    51     int         status;         /* See MC_SEL flags */
    52     int         curSelDay;      /* current selected day */
    53     int         firstSelDay;    /* first selected day */
    54     int         maxSelCount;
    55     SYSTEMTIME  minSel;
    56     SYSTEMTIME  maxSel;
    57     DWORD       rangeValid;
    58     SYSTEMTIME  minDate;
    59     SYSTEMTIME  maxDate;
    60 
    61     RECT rcClient;      /* rect for whole client area */
    62     RECT rcDraw;        /* rect for drawable portion of 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;
    74 
    75 extern void MONTHCAL_CopyTime (const SYSTEMTIME *from, SYSTEMTIME *to);
    76 extern int MONTHCAL_CalculateDayOfWeek (DWORD day, DWORD month, DWORD year);
    77 
    78 extern VOID MONTHCAL_Register (VOID);
    79 extern VOID MONTHCAL_Unregister (VOID);
     20#ifdef __cplusplus
     21}
     22#endif
    8023
    8124#endif  /* __WINE_MONTHCAL_H */
Note: See TracChangeset for help on using the changeset viewer.