Changeset 2634 for trunk/include


Ignore:
Timestamp:
Feb 4, 2000, 6:00:23 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

Location:
trunk/include/win
Files:
3 edited

Legend:

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

    r2124 r2634  
    1 /* $Id: commctrl.h,v 1.16 1999-12-18 20:05:39 achimha Exp $ */
     1/* $Id: commctrl.h,v 1.17 2000-02-04 17:00:22 cbratschi Exp $ */
    22/*
    33 * Common controls definitions
     
    495495#define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
    496496
     497#ifndef WM_MOUSEHOVER
     498#define WM_MOUSEHOVER                   0x02A1
     499#define WM_MOUSELEAVE                   0x02A3
     500#endif
     501
     502#ifndef TME_HOVER
     503
     504#define TME_HOVER       0x00000001
     505#define TME_LEAVE       0x00000002
     506#define TME_QUERY       0x40000000
     507#define TME_CANCEL      0x80000000
     508
     509
     510#define HOVER_DEFAULT   0xFFFFFFFF
     511
     512typedef struct tagTRACKMOUSEEVENT {
     513    DWORD cbSize;
     514    DWORD dwFlags;
     515    HWND  hwndTrack;
     516    DWORD dwHoverTime;
     517} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
     518
     519#endif
     520
     521BOOL
     522WINAPI
     523_TrackMouseEvent(
     524    LPTRACKMOUSEEVENT lpEventTrack);
    497525
    498526/* Flat Scrollbar control */
     
    21782206 (BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
    21792207#define TreeView_SetItemW(hwnd, pitem) \
    2180  (BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem)) 
     2208 (BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
    21812209
    21822210#define TreeView_EditLabel(hwnd, hitem) \
     
    22142242#define TreeView_GetISearchString(hwnd, lpsz) \
    22152243    (BOOL)SendMessageA((hwnd), TVM_GETISEARCHSTRING, 0, \
    2216                                                         (LPARAM)(LPTSTR)lpsz)
     2244                                                        (LPARAM)(LPTSTR)lpsz)
    22172245
    22182246#define TreeView_SetToolTips(hwnd,  hwndTT) \
     
    26692697typedef struct tagNMLVCACHEHINT
    26702698{
    2671         NMHDR   hdr;
    2672         INT     iFrom;
    2673         INT     iTo;
     2699        NMHDR   hdr;
     2700        INT     iFrom;
     2701        INT     iTo;
    26742702} NMLVCACHEHINT, *LPNMLVCACHEHINT;
    26752703
  • trunk/include/win/imagelist.h

    r94 r2634  
    1 /* $Id: imagelist.h,v 1.3 1999-06-10 16:21:51 achimha Exp $ */
     1/* $Id: imagelist.h,v 1.4 2000-02-04 17:00:23 cbratschi Exp $ */
    22/*
    33 * ImageList definitions
     
    66 * Copyright 1999 Achim Hasenmueller
    77 */
    8  
     8
    99#ifndef _IMAGELIST_H
    1010#define _IMAGELIST_H
     
    1212#include "wingdi.h"
    1313
     14/* the ones with offsets at the end are the same as in Windows */
    1415struct _IMAGELIST
    1516{
     17    DWORD       magic;                  /* 00:  'LMIH' */
     18    INT         cCurImage;              /* 04: ImageCount */
     19    INT         cMaxImage;              /* 08: maximages */
     20    DWORD       x3;
     21    INT         cx;                     /* 10: cx */
     22    INT         cy;                     /* 14: cy */
     23    DWORD       x4;
     24    UINT        flags;                  /* 1c: flags */
     25    DWORD       x5;
     26    COLORREF    clrBk;                  /* 24: bkcolor */
     27
     28
     29    /* not yet found out */
    1630    HBITMAP hbmImage;
    1731    HBITMAP hbmMask;
    1832    HBRUSH  hbrBlend25;
    1933    HBRUSH  hbrBlend50;
    20     COLORREF  clrBk;
    2134    COLORREF  clrFg;
    2235    INT     cInitial;
    2336    INT     cGrow;
    24     INT     cMaxImage;
    25     INT     cCurImage;
    26     INT     cx;
    27     INT     cy;
    28     UINT    flags;
    2937    UINT    uBitsPixel;
    3038    INT     nOvlIdx[15];
    3139};
    32  
     40
    3341typedef struct _IMAGELIST *HIMAGELIST;
     42
     43/* Header used by ImageList_Read() and ImageList_Write() */
     44typedef struct _ILHEAD
     45{
     46    USHORT      usMagic;
     47    USHORT      usVersion;
     48    WORD        cCurImage;
     49    WORD        cMaxImage;
     50    WORD        cGrow;
     51    WORD        cx;
     52    WORD        cy;
     53    COLORREF    bkcolor;
     54    WORD        flags;
     55    SHORT       ovls[4];
     56} ILHEAD;
    3457
    3558#endif  /* _IMAGELIST_H */
  • trunk/include/win/monthcal.h

    r499 r2634  
    1 /* $Id: monthcal.h,v 1.2 1999-08-14 17:23:24 achimha Exp $ */
     1/* $Id: monthcal.h,v 1.3 2000-02-04 17:00:23 cbratschi Exp $ */
    22
    33/*
     
    1111#define __WINE_MONTHCAL_H
    1212
    13 #define MC_SEL_LBUTUP           0                       /* Left button released */
    14 #define MC_SEL_LBUTDOWN         1                       /* Left button pressed in calendar */
    15 #define MC_PREVPRESSED      1           /* Prev month button pressed */
    16 #define MC_NEXTPRESSED      2           /* Next month button pressed */
    17 #define MC_NEXTMONTHDELAY       500                     /* 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#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                   
    2222
    2323typedef struct tagMONTHCAL_INFO
    2424{
    25     COLORREF bk;
    26     COLORREF txt;
    27     COLORREF titlebk;
    28     COLORREF titletxt;
    29     COLORREF monthbk;
    30     COLORREF trailingtxt;
    31         HFONT    hFont;
    32         HFONT    hBoldFont;
    33         int              textHeight;
    34         int              textWidth;
    35         int              firstDayplace; /* place of the first day of the current month */
    36         int              delta;                         /* scroll rate; # of months that the */
    37                           /* control moves when user clicks a scroll button */
    38         int      visible;               /* # of months visible */
    39         int      firstDay;              /* Start month calendar with firstDay's day */
    40         int              monthRange;
    41         MONTHDAYSTATE *monthdayState;
    42         SYSTEMTIME todaysDate;
    43         DWORD    currentMonth;
    44         DWORD    currentYear;
    45         int              status;                /* See MC_SEL flags */
    46         int              curSelDay;         /* current selected day */
    47         int              firstSelDay;   /* first selected day */
    48         int              maxSelCount;
    49         SYSTEMTIME minSel;
    50         SYSTEMTIME maxSel;
    51         DWORD   rangeValid;
    52         SYSTEMTIME minDate;
    53         SYSTEMTIME maxDate;
     25    COLORREF    bk;
     26    COLORREF    txt;
     27    COLORREF    titlebk;
     28    COLORREF    titletxt;
     29    COLORREF    monthbk;
     30    COLORREF    trailingtxt;
     31    HFONT       hFont;
     32    HFONT       hBoldFont;
     33    int         textHeight;
     34    int         textWidth;
     35    int         height_increment;
     36    int         width_increment;
     37    int         left_offset;
     38    int         top_offset;
     39    int         firstDayplace; /* place of the first day of the current month */
     40    int         delta;  /* scroll rate; # of months that the */
     41                        /* control moves when user clicks a scroll button */
     42    int         visible;        /* # of months visible */
     43    int         firstDay;       /* Start month calendar with firstDay's day */
     44    int         monthRange;
     45    MONTHDAYSTATE *monthdayState;
     46    SYSTEMTIME  todaysDate;
     47    DWORD       currentMonth;
     48    DWORD       currentYear;
     49    int         status;         /* See MC_SEL flags */
     50    int         curSelDay;      /* current selected day */
     51    int         firstSelDay;    /* first selected day */
     52    int         maxSelCount;
     53    SYSTEMTIME  minSel;
     54    SYSTEMTIME  maxSel;
     55    DWORD       rangeValid;
     56    SYSTEMTIME  minDate;
     57    SYSTEMTIME  maxDate;
     58               
     59    RECT rcClient;      /* rect for whole client area */
     60    RECT rcDraw;        /* rect for drawable portion of client area */
     61    RECT title;         /* rect for the header above the calendar */
     62    RECT titlebtnnext;  /* the `next month' button in the header */
     63    RECT titlebtnprev;  /* the `prev month' button in the header */     
     64    RECT titlemonth;    /* the `month name' txt in the header */
     65    RECT titleyear;     /* the `year number' txt in the header */
     66    RECT prevmonth;     /* day numbers of the previous month */
     67    RECT nextmonth;     /* day numbers of the next month */
     68    RECT days;          /* week numbers at left side */
     69    RECT weeknums;      /* week numbers at left side */
     70    RECT today;         /* `today: xx/xx/xx' text rect */
     71} MONTHCAL_INFO, *LPMONTHCAL_INFO;
    5472
    55         RECT    rcClient;                       /* rect for whole client area */
    56         RECT    title;                          /* rect for the header above the calendar */
    57         RECT    titlebtnnext;           /* the `next month' button in the header */
    58         RECT    titlebtnprev;       /* the `prev month' button in the header */
    59         RECT    titlemonth;                     /* the `month name' txt in the header */
    60         RECT    titleyear;                      /* the `year number' txt in the header */
    61         RECT    prevmonth;                      /* day numbers of the previous month */
    62         RECT    nextmonth;                      /* day numbers of the next month */
    63         RECT    days;                   /* week numbers at left side */
    64         RECT    weeknums;                       /* week numbers at left side */
    65         RECT    today;                          /* `today: xx/xx/xx' text rect */
    66 } MONTHCAL_INFO, *LPMONTHCAL_INFO;
    67 /*
    68 int mdays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0};
    69 
    70 char *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
    71                   "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", NULL};
    72 
    73 char *days[] = {"Sunday", "Monday", "Tuesday", "Wednesday",
    74                 "Thursday", "Friday", "Saturday", NULL};
    75 
    76 char *monthtxt[] = {"January", "February", "March", "April", "May",
    77                       "June", "July", "August", "September", "October",
    78                       "November", "December"};
    79 
    80 char *daytxt[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
    81 int DayOfWeekTable[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
    82 */
    8373extern void MONTHCAL_CopyTime (const SYSTEMTIME *from, SYSTEMTIME *to);
    8474extern int MONTHCAL_CalculateDayOfWeek (DWORD day, DWORD month, DWORD year);
Note: See TracChangeset for help on using the changeset viewer.