Changeset 499 for trunk/include


Ignore:
Timestamp:
Aug 14, 1999, 7:23:24 PM (26 years ago)
Author:
achimha
Message:

headers for comctl32 updates

Location:
trunk/include/win
Files:
6 edited

Legend:

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

    r288 r499  
    1 /* $Id: commctrl.h,v 1.9 1999-07-10 17:16:43 achimha Exp $ */
     1/* $Id: commctrl.h,v 1.10 1999-08-14 17:23:23 achimha Exp $ */
    22/*
    33 * Common controls definitions
     
    88
    99#include "windef.h"
     10#include "winbase.h"
    1011#include "winuser.h"
    1112#include "imagelist.h"
     
    152153#define CDRF_NOTIFYSUBITEMDRAW  0x00000020
    153154#define CDRF_NOTIFYPOSTERASE    0x00000040
    154 /* #define CDRF_NOTIFYITEMERASE    0x00000080          obsolete ? */
     155#define CDRF_NOTIFYITEMERASE    0x00000080         /* obsolete ??? */
    155156
    156157
     
    495496#define FLATSB_CLASSW       L"flatsb_class32"
    496497#define FLATSB_CLASS          WINELIB_NAME_AW(FLATSB_CLASS)
     498
     499#define WSB_PROP_CYVSCROLL     0x00000001L
     500#define WSB_PROP_CXHSCROLL     0x00000002L
     501#define WSB_PROP_CYHSCROLL     0x00000004L
     502#define WSB_PROP_CXVSCROLL     0x00000008L
     503#define WSB_PROP_CXHTHUMB      0x00000010L
     504#define WSB_PROP_CYVTHUMB      0x00000020L
     505#define WSB_PROP_VBKGCOLOR     0x00000040L
     506#define WSB_PROP_HBKGCOLOR     0x00000080L
     507#define WSB_PROP_VSTYLE        0x00000100L
     508#define WSB_PROP_HSTYLE        0x00000200L
     509#define WSB_PROP_WINSTYLE      0x00000400L
     510#define WSB_PROP_PALETTE       0x00000800L
     511#define WSB_PROP_MASK          0x00000FFFL
     512
     513#define FSB_REGULAR_MODE       0
     514#define FSB_ENCARTA_MODE       1
     515#define FSB_FLAT_MODE          2
     516
    497517
    498518BOOL  WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT);
     
    14971517#define TBS_NOTHUMB             0x0080
    14981518#define TBS_TOOLTIPS            0x0100
     1519#define TBS_REVERSED            0x0200
    14991520
    15001521#define TBTS_TOP                0
     
    16861707#define TVM_SETINSERTMARKCOLOR  (TV_FIRST+37)
    16871708#define TVM_GETINSERTMARKCOLOR  (TV_FIRST+38)
     1709#define TVM_GETITEMSTATE        (TV_FIRST+39)
     1710#define TVM_SETLINECOLOR        (TV_FIRST+40)
     1711#define TVM_GETLINECOLOR        (TV_FIRST+41)
    16881712#define TVM_SETUNICODEFORMAT    CCM_SETUNICODEFORMAT
    16891713#define TVM_GETUNICODEFORMAT    CCM_GETUNICODEFORMAT
     1714
     1715#define TreeView_GetItemState(hwndTV, hti, mask) \
     1716   (UINT)SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
     1717#define TreeView_GetCheckState(hwndTV, hti) \
     1718   ((((UINT)(SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti),  \
     1719                     TVIS_STATEIMAGEMASK))) >> 12) -1)
     1720#define TreeView_SetLineColor(hwnd, clr) \
     1721    (COLORREF)SendMessageA((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
     1722#define TreeView_GetLineColor(hwnd) \
     1723    (COLORREF)SendMessageA((hwnd), TVM_GETLINECOLOR, 0, 0)
     1724#define TreeView_SetItemState(hwndTV, hti, data, _mask) \
     1725{ TVITEM _TVi; \
     1726  _TVi.mask = TVIF_STATE; \
     1727  _TVi.hItem = hti; \
     1728  _TVi.stateMask = _mask; \
     1729  _TVi.state = data; \
     1730  SendMessageA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \
     1731}
     1732
     1733
     1734
     1735
    16901736
    16911737#define TVN_FIRST               (0U-400U)
     
    19862032
    19872033
    1988 
    1989 
    1990 
    1991 
    1992 
    19932034#define TreeView_InsertItemA(hwnd, phdi) \
    19942035  (INT)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \
    19952036                            (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
     2037#define TreeView_InsertItemW(hwnd,phdi) \
     2038  (INT)SendMessageW((hwnd), TVM_INSERTITEMW, 0, \
     2039                            (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
    19962040#define TreeView_DeleteItem(hwnd, hItem) \
    19972041  (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
     
    21892233#define LVSIL_SMALL             1
    21902234#define LVSIL_STATE             2
    2191 
    2192 #define LVIS_FOCUSED            0x0001
    2193 #define LVIS_SELECTED           0x0002
    2194 #define LVIS_CUT                0x0004
    2195 #define LVIS_DROPHILITED        0x0008
    2196 #define LVIS_ACTIVATING         0x0020
    21972235
    21982236#define LVFI_PARAM              0X0001
     
    26832721/* TabCtrl Macros */
    26842722#define TabCtrl_GetImageList(hwnd) \
    2685                                     (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
    2686 
     2723    (HIMAGELIST)SendMessageA((hwnd), TCM_GETIMAGELIST, 0, 0L)
    26872724#define TabCtrl_SetImageList(hwnd, himl) \
    2688                                     (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
    2689 
     2725    (HIMAGELIST)SendMessageA((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
    26902726#define TabCtrl_GetItemCount(hwnd) \
    2691                                     (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
    2692 
    2693 #define TabCtrl_GetItem(hwnd, iItem, pitem) \
    2694                                     (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
    2695 
    2696 #define TabCtrl_SetItem(hwnd, iItem, pitem) \
    2697                                     (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
    2698 
    2699 #define TabCtrl_InsertItem(hwnd, iItem, pitem)   \
    2700                                     (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))
    2701 
     2727    (int)SendMessageA((hwnd), TCM_GETITEMCOUNT, 0, 0L)
     2728#define TabCtrl_GetItemA(hwnd, iItem, pitem) \
     2729    (BOOL)SendMessageA((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
     2730#define TabCtrl_GetItemW(hwnd, iItem, pitem) \
     2731    (BOOL)SendMessageW((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
     2732#define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
     2733#define TabCtrl_SetItemA(hwnd, iItem, pitem) \
     2734    (BOOL)SendMessageA((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
     2735#define TabCtrl_SetItemW(hwnd, iItem, pitem) \
     2736    (BOOL)SendMessageW((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
     2737#define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_GetItem)
     2738#define TabCtrl_InsertItemA(hwnd, iItem, pitem)   \
     2739    (int)SendMessageA((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
     2740#define TabCtrl_InsertItemW(hwnd, iItem, pitem)   \
     2741    (int)SendMessageW((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
     2742#define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
    27022743#define TabCtrl_DeleteItem(hwnd, i) \
    2703                                     (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
    2704 
     2744    (BOOL)SendMessageA((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
    27052745#define TabCtrl_DeleteAllItems(hwnd) \
    2706                                     (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
    2707 
     2746    (BOOL)SendMessageA((hwnd), TCM_DELETEALLITEMS, 0, 0L)
    27082747#define TabCtrl_GetItemRect(hwnd, i, prc) \
    2709                                     (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))
    2710 
     2748    (BOOL)SendMessageA((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
    27112749#define TabCtrl_GetCurSel(hwnd) \
    2712                                     (int)::SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
    2713 
     2750    (int)SendMessageA((hwnd), TCM_GETCURSEL, 0, 0)
    27142751#define TabCtrl_SetCurSel(hwnd, i) \
    2715                                     (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
    2716 
     2752    (int)SendMessageA((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
    27172753#define TabCtrl_HitTest(hwndTC, pinfo) \
    2718                                     (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))
    2719 
     2754    (int)SendMessageA((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
    27202755#define TabCtrl_SetItemExtra(hwndTC, cb) \
    2721                                     (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
    2722 
     2756    (BOOL)SendMessageA((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
    27232757#define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
    2724                                     (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)
    2725 
     2758    (int)SendMessageA(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
    27262759#define TabCtrl_SetItemSize(hwnd, x, y) \
    2727                                     (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
    2728 
     2760    (DWORD)SendMessageA((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
    27292761#define TabCtrl_RemoveImage(hwnd, i) \
    2730                                         (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
    2731 
     2762    (void)SendMessageA((hwnd), TCM_REMOVEIMAGE, i, 0L)
    27322763#define TabCtrl_SetPadding(hwnd,  cx, cy) \
    2733                                         (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
    2734 
     2764    (void)SendMessageA((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
    27352765#define TabCtrl_GetRowCount(hwnd) \
    2736                                         (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
    2737 
     2766    (int)SendMessageA((hwnd), TCM_GETROWCOUNT, 0, 0L)
    27382767#define TabCtrl_GetToolTips(hwnd) \
    2739                                         (HWND)SNDMSG((hwnd), TCM_GETTOOLTIPS, 0, 0L)
    2740 
     2768    (HWND)SendMessageA((hwnd), TCM_GETTOOLTIPS, 0, 0L)
    27412769#define TabCtrl_SetToolTips(hwnd, hwndTT) \
    2742                                         (void)SNDMSG((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
    2743 
     2770    (void)SendMessageA((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
    27442771#define TabCtrl_GetCurFocus(hwnd) \
    2745                                     (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
    2746 
     2772    (int)SendMessageA((hwnd), TCM_GETCURFOCUS, 0, 0)
    27472773#define TabCtrl_SetCurFocus(hwnd, i) \
    2748                                     SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
    2749 
     2774    SendMessageA((hwnd),TCM_SETCURFOCUS, i, 0)
    27502775#define TabCtrl_SetMinTabWidth(hwnd, x) \
    2751                                         (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
    2752 
     2776    (int)SendMessageA((hwnd), TCM_SETMINTABWIDTH, 0, x)
    27532777#define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
    2754                                         (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
    2755 
     2778    (void)SendMessageA((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
    27562779
    27572780/* constants for TCHITTESTINFO */
     
    29522975/**************************************************************************
    29532976 * Month calendar control
     2977 *
    29542978 */
    29552979
     
    29572981#define MONTHCAL_CLASSW L"SysMonthCal32"
    29582982#define MONTHCAL_CLASS          WINELIB_NAME_AW(MONTHCAL_CLASS)
    2959 
     2983#define MCM_FIRST             0x1000
     2984#define MCN_FIRST             (0U-750U)
     2985#define MCN_LAST              (0U-759U)
     2986
     2987#define MCM_GETCURSEL         (MCM_FIRST + 1)
     2988#define MCM_SETCURSEL         (MCM_FIRST + 2)
     2989#define MCM_GETMAXSELCOUNT    (MCM_FIRST + 3)
     2990#define MCM_SETMAXSELCOUNT    (MCM_FIRST + 4)
     2991#define MCM_GETSELRANGE       (MCM_FIRST + 5)
     2992#define MCM_SETSELRANGE       (MCM_FIRST + 6)
     2993#define MCM_GETMONTHRANGE     (MCM_FIRST + 7)
     2994#define MCM_SETDAYSTATE       (MCM_FIRST + 8)
     2995#define MCM_GETMINREQRECT     (MCM_FIRST + 9)
     2996#define MCM_SETCOLOR          (MCM_FIRST + 10)
     2997#define MCM_GETCOLOR          (MCM_FIRST + 11)
     2998#define MCM_SETTODAY          (MCM_FIRST + 12)
     2999#define MCM_GETTODAY          (MCM_FIRST + 13)
     3000#define MCM_HITTEST           (MCM_FIRST + 14)
     3001#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
     3002#define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
     3003#define MCM_GETRANGE          (MCM_FIRST + 17)
     3004#define MCM_SETRANGE          (MCM_FIRST + 18)
     3005#define MCM_GETMONTHDELTA     (MCM_FIRST + 19)
     3006#define MCM_SETMONTHDELTA     (MCM_FIRST + 20)
     3007#define MCM_GETMAXTODAYWIDTH  (MCM_FIRST + 21)
     3008#define MCM_GETUNICODEFORMAT   CCM_GETUNICODEFORMAT
     3009#define MCM_SETUNICODEFORMAT   CCM_SETUNICODEFORMAT
     3010
     3011/* Notifications */
     3012#define MCN_SELCHANGE         (MCN_FIRST + 1)
     3013#define MCN_GETDAYSTATE       (MCN_FIRST + 3)
     3014#define MCN_SELECT            (MCN_FIRST + 4)
     3015#define MCSC_BACKGROUND   0
     3016#define MCSC_TEXT         1
     3017#define MCSC_TITLEBK      2
     3018#define MCSC_TITLETEXT    3
     3019#define MCSC_MONTHBK      4
     3020#define MCSC_TRAILINGTEXT 5
     3021#define MCS_DAYSTATE           0x0001
     3022#define MCS_MULTISELECT        0x0002
     3023#define MCS_WEEKNUMBERS        0x0004
     3024#define MCS_NOTODAY            0x0010
     3025#define MCS_NOTODAYCIRCLE      0x0008
     3026#define MCHT_TITLE             0x00010000
     3027#define MCHT_CALENDAR          0x00020000
     3028#define MCHT_TODAYLINK         0x00030000
     3029#define MCHT_NEXT              0x01000000
     3030#define MCHT_PREV              0x02000000
     3031#define MCHT_NOWHERE           0x00000000
     3032#define MCHT_TITLEBK           (MCHT_TITLE)
     3033#define MCHT_TITLEMONTH        (MCHT_TITLE | 0x0001)
     3034#define MCHT_TITLEYEAR         (MCHT_TITLE | 0x0002)
     3035#define MCHT_TITLEBTNNEXT      (MCHT_TITLE | MCHT_NEXT | 0x0003)
     3036#define MCHT_TITLEBTNPREV      (MCHT_TITLE | MCHT_PREV | 0x0003)
     3037#define MCHT_CALENDARBK        (MCHT_CALENDAR)
     3038#define MCHT_CALENDARDATE      (MCHT_CALENDAR | 0x0001)
     3039#define MCHT_CALENDARDATENEXT  (MCHT_CALENDARDATE | MCHT_NEXT)
     3040#define MCHT_CALENDARDATEPREV  (MCHT_CALENDARDATE | MCHT_PREV)
     3041#define MCHT_CALENDARDAY       (MCHT_CALENDAR | 0x0002)
     3042#define MCHT_CALENDARWEEKNUM   (MCHT_CALENDAR | 0x0003)
     3043
     3044
     3045#define GMR_VISIBLE     0
     3046#define GMR_DAYSTATE    1
     3047
     3048/*  Month calendar's structures */
     3049
     3050typedef struct {
     3051        UINT cbSize;
     3052        POINT pt;
     3053        UINT uHit;
     3054        SYSTEMTIME st;
     3055} MCHITTESTINFO, *PMCHITTESTINFO;
     3056typedef struct tagNMSELCHANGE
     3057{
     3058    NMHDR           nmhdr;
     3059    SYSTEMTIME      stSelStart;
     3060    SYSTEMTIME      stSelEnd;
     3061} NMSELCHANGE, *LPNMSELCHANGE;
     3062typedef NMSELCHANGE NMSELECT, *LPNMSELECT;
     3063typedef DWORD MONTHDAYSTATE, *LPMONTHDAYSTATE;
     3064typedef struct tagNMDAYSTATE
     3065{
     3066    NMHDR           nmhdr;
     3067    SYSTEMTIME      stStart;
     3068    int             cDayState;
     3069    LPMONTHDAYSTATE prgDayState;
     3070} NMDAYSTATE, *LPNMDAYSTATE;
     3071
     3072/* macros */
     3073#define MonthCal_GetCurSel(hmc, pst) \
     3074                (BOOL)SendMessageA(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
     3075#define MonthCal_SetCurSel(hmc, pst)  \
     3076                (BOOL)SendMessageA(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
     3077#define MonthCal_GetMaxSelCount(hmc) \
     3078                (DWORD)SendMessageA(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
     3079#define MonthCal_SetMaxSelCount(hmc, n) \
     3080                (BOOL)SendMessageA(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
     3081#define MonthCal_GetSelRange(hmc, rgst) \
     3082                SendMessageA(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
     3083#define MonthCal_SetSelRange(hmc, rgst) \
     3084                SendMessageA(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
     3085#define MonthCal_GetMonthRange(hmc, gmr, rgst) \
     3086                (DWORD)SendMessageA(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
     3087#define MonthCal_SetDayState(hmc, cbds, rgds) \
     3088                SendMessageA(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
     3089#define MonthCal_GetMinReqRect(hmc, prc) \
     3090                SendMessageA(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
     3091#define MonthCal_SetColor(hmc, iColor, clr)\
     3092                SendMessageA(hmc, MCM_SETCOLOR, iColor, clr
     3093#define MonthCal_GetColor(hmc, iColor) \
     3094                SendMessageA(hmc, MCM_SETCOLOR, iColor, 0)
     3095#define MonthCal_GetToday(hmc, pst)\
     3096                (BOOL)SendMessageA(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
     3097#define MonthCal_SetToday(hmc, pst)\
     3098                SendMessageA(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
     3099#define MonthCal_HitTest(hmc, pinfo) \
     3100        SendMessageA(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
     3101#define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
     3102        SendMessageA(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
     3103#define MonthCal_GetFirstDayOfWeek(hmc) \
     3104        (DWORD)SendMessageA(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
     3105#define MonthCal_GetRange(hmc, rgst) \
     3106        (DWORD)SendMessageA(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
     3107#define MonthCal_SetRange(hmc, gd, rgst) \
     3108        (BOOL)SendMessageA(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
     3109#define MonthCal_GetMonthDelta(hmc) \
     3110        (int)SendMessageA(hmc, MCM_GETMONTHDELTA, 0, 0)
     3111#define MonthCal_SetMonthDelta(hmc, n) \
     3112        (int)SendMessageA(hmc, MCM_SETMONTHDELTA, n, 0)
     3113#define MonthCal_GetMaxTodayWidth(hmc) \
     3114        (DWORD)SendMessageA(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
     3115#define MonthCal_SetUnicodeFormat(hwnd, fUnicode)  \
     3116        (BOOL)SendMessageA((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
     3117#define MonthCal_GetUnicodeFormat(hwnd)  \
     3118        (BOOL)SendMessageA((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
    29603119
    29613120/**************************************************************************
     
    29683127
    29693128#define DTM_FIRST        0x1000
     3129#define DTN_FIRST       (0U-760U)
     3130#define DTN_LAST        (0U-799U)
    29703131
    29713132#define DTM_GETSYSTEMTIME       (DTM_FIRST+1)
     
    29733134#define DTM_GETRANGE            (DTM_FIRST+3)
    29743135#define DTM_SETRANGE            (DTM_FIRST+4)
    2975 #define DTM_SETFORMATA  (DTM_FIRST+5)
    2976 #define DTM_SETFORMATW  (DTM_FIRST + 50)
     3136#define DTM_SETFORMATA          (DTM_FIRST+5)
     3137#define DTM_SETFORMATW          (DTM_FIRST + 50)
    29773138#define DTM_SETFORMAT           WINELIB_NAME_AW(DTM_SETFORMAT)
    29783139#define DTM_SETMCCOLOR          (DTM_FIRST+6)
    29793140#define DTM_GETMCCOLOR          (DTM_FIRST+7)
    2980 
    29813141#define DTM_GETMONTHCAL         (DTM_FIRST+8)
    2982 
    29833142#define DTM_SETMCFONT           (DTM_FIRST+9)
    29843143#define DTM_GETMCFONT           (DTM_FIRST+10)
     3144
     3145/* Datetime Notifications */
     3146#define DTN_DATETIMECHANGE  (DTN_FIRST + 1)
     3147#define DTN_USERSTRINGA     (DTN_FIRST + 2)
     3148#define DTN_WMKEYDOWNA      (DTN_FIRST + 3)
     3149#define DTN_FORMATA         (DTN_FIRST + 4)
     3150#define DTN_FORMATQUERYA    (DTN_FIRST + 5)
     3151#define DTN_DROPDOWN        (DTN_FIRST + 6)
     3152#define DTN_CLOSEUP         (DTN_FIRST + 7)
     3153#define DTN_USERSTRINGW     (DTN_FIRST + 15)
     3154#define DTN_WMKEYDOWNW      (DTN_FIRST + 16)
     3155#define DTN_FORMATW         (DTN_FIRST + 17)
     3156#define DTN_FORMATQUERYW    (DTN_FIRST + 18)
     3157
     3158#define DTS_SHORTDATEFORMAT 0x0000
     3159#define DTS_UPDOWN          0x0001
     3160#define DTS_SHOWNONE        0x0002
     3161#define DTS_LONGDATEFORMAT  0x0004
     3162#define DTS_TIMEFORMAT      0x0009
     3163#define DTS_APPCANPARSE     0x0010
     3164#define DTS_RIGHTALIGN      0x0020
     3165typedef struct tagNMDATETIMECHANGE
     3166{
     3167    NMHDR       nmhdr;
     3168    DWORD       dwFlags;
     3169    SYSTEMTIME  st;
     3170} NMDATETIMECHANGE, *LPNMDATETIMECHANGE;
     3171typedef struct tagNMDATETIMESTRINGA
     3172{
     3173    NMHDR      nmhdr;
     3174    LPCSTR     pszUserString;
     3175    SYSTEMTIME st;
     3176    DWORD      dwFlags;
     3177} NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA;
     3178typedef struct tagNMDATETIMESTRINGW
     3179{
     3180    NMHDR      nmhdr;
     3181    LPCWSTR    pszUserString;
     3182    SYSTEMTIME st;
     3183    DWORD      dwFlags;
     3184} NMDATETIMESTRINGW, *LPNMDATETIMESTRINGW;
     3185
     3186typedef struct tagNMDATETIMEWMKEYDOWNA
     3187{
     3188    NMHDR      nmhdr;
     3189    int        nVirtKey;
     3190    LPCSTR     pszFormat;
     3191    SYSTEMTIME st;
     3192} NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA;
     3193typedef struct tagNMDATETIMEWMKEYDOWNW
     3194{
     3195    NMHDR      nmhdr;
     3196    int        nVirtKey;
     3197    LPCWSTR    pszFormat;
     3198    SYSTEMTIME st;
     3199} NMDATETIMEWMKEYDOWNW, *LPNMDATETIMEWMKEYDOWNW;
     3200
     3201
     3202typedef struct tagNMDATETIMEFORMATA
     3203{
     3204    NMHDR nmhdr;
     3205    LPCSTR  pszFormat;
     3206    SYSTEMTIME st;
     3207    LPCSTR pszDisplay;
     3208    CHAR szDisplay[64];
     3209} NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA;
     3210
     3211typedef struct tagNMDATETIMEFORMATW
     3212{
     3213    NMHDR nmhdr;
     3214    LPCWSTR pszFormat;
     3215    SYSTEMTIME st;
     3216    LPCWSTR pszDisplay;
     3217    WCHAR szDisplay[64];
     3218} NMDATETIMEFORMATW, *LPNMDATETIMEFORMATW;
     3219
     3220
     3221typedef struct tagNMDATETIMEFORMATQUERYA
     3222{
     3223    NMHDR nmhdr;
     3224    LPCSTR pszFormat;
     3225    SIZE szMax;
     3226} NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA;
     3227typedef struct tagNMDATETIMEFORMATQUERYW
     3228{
     3229    NMHDR nmhdr;
     3230    LPCWSTR pszFormat;
     3231    SIZE szMax;
     3232} NMDATETIMEFORMATQUERYW, *LPNMDATETIMEFORMATQUERYW;
     3233
     3234#define NMDATETIMESTRING WINELIB_NAME_AW(NMDATETIMESTRING)
     3235#define NMDATETIMEWMKEYDOWN WINELIB_NAME_AW(NMDATETIMEWMKEYDOWN)
     3236#define NMDATETIMEFORMAT WINELIB_NAME_AW(NMDATETIMEFORMAT)
     3237#define NMDATETIMEFORMATQUERY WINELIB_NAME_AW(NMDATETIMEFORMATQUERY)
    29853238
    29863239
     
    29933246#define GDTR_MIN     0x0001
    29943247#define GDTR_MAX     0x0002
     3248
     3249#define DateTime_GetSystemtime(hdp, pst)   \\
     3250  (DWORD)SendMessageA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
     3251#define DateTime_SetSystemtime(hdp, gd, pst)   \\
     3252  (BOOL)SendMessageA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
     3253#define DateTime_GetRange(hdp, rgst)  \\
     3254  (DWORD)SendMessageA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
     3255#define DateTime_SetRange(hdp, gd, rgst) \\
     3256   (BOOL)SendMessageA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
     3257#define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
     3258#define DateTime_SetFormatA(hdp, sz)  \\
     3259  (BOOL)SendMessageA (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
     3260#define DateTime_SetFormatW(hdp, sz)  \\
     3261  (BOOL)SendMessageW (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
     3262#define DateTime_GetMonthCalColor(hdp, iColor) \\
     3263  SendMessageA (hdp, DTM_GETMCCOLOR, iColor, 0)
     3264#define DateTime_GetMonthCal(hdp)  \\
     3265  (HWND) SendMessageA (hdp, DTM_GETMONTHCAL, 0, 0)
     3266#define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \\
     3267  SendMessageA (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
     3268#define DateTime_GetMonthCalFont(hdp) \\
     3269  SendMessageA (hdp, DTM_GETMCFONT, 0, 0)
    29953270
    29963271
  • trunk/include/win/datetime.h

    r4 r499  
    1 /* $Id: datetime.h,v 1.1 1999-05-24 20:19:10 ktk Exp $ */
     1/* $Id: datetime.h,v 1.2 1999-08-14 17:23:24 achimha Exp $ */
    22
    33/*
     
    55 *
    66 * Copyright 1998 Eric Kohl
     7 * Copyright 1999 Alex Priem
    78 */
    89
     
    1213typedef struct tagDATETIME_INFO
    1314{
    14     DWORD dwDummy;  /* just to keep the compiler happy ;-) */
    15 
    16 
     15        HWND hMonthCal;
     16        HWND hUpdown;
     17        SYSTEMTIME date;
     18        BOOL dateValid;
     19        HWND hwndCheckbut;
     20        RECT rect;
     21        RECT checkbox;
     22        RECT daytxt;
     23        RECT daynumtxt;
     24        RECT rmonthtxt;
     25        RECT yeartxt;
     26        RECT calbutton;
     27        int  select;
     28        HFONT hFont;
    1729} DATETIME_INFO, *LPDATETIME_INFO;
    18 
    1930
    2031extern VOID DATETIME_Register (VOID);
    2132extern VOID DATETIME_Unregister (VOID);
    2233
     34#define DTHT_NONE     0
     35#define DTHT_MCPOPUP  1
     36#define DTHT_YEAR     2
     37#define DTHT_DAYNUM   3
     38#define DTHT_MONTH    4
     39#define DTHT_DAY      5
     40#define DTHT_CHECKBOX 6
     41#define DTHT_GOTFOCUS 128
     42
    2343#endif  /* __WINE_DATETIME_H */
  • trunk/include/win/listview.h

    r164 r499  
    4242    INT nItemWidth;
    4343    INT nSelectionMark;
     44    INT nHotItem;
    4445    SHORT notifyFormat;
    4546    RECT rcList;
     
    5657    PFNLVCOMPARE pfnCompare;
    5758    LPARAM lParamSort;
    58    
     59
    5960} LISTVIEW_INFO;
    6061
  • trunk/include/win/monthcal.h

    r4 r499  
    1 /* $Id: monthcal.h,v 1.1 1999-05-24 20:19:14 ktk Exp $ */
     1/* $Id: monthcal.h,v 1.2 1999-08-14 17:23:24 achimha Exp $ */
    22
    33/*
     
    55 *
    66 * Copyright 1998 Eric Kohl
     7 * Copyright 1999 Alex Priem
    78 */
    89
     
    1011#define __WINE_MONTHCAL_H
    1112
     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
     22
    1223typedef struct tagMONTHCAL_INFO
    1324{
    14     DWORD dwDummy;  /* just to keep the compiler happy ;-) */
     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;
    1554
     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/*
     68int mdays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0};
    1669
    17 } MONTHCAL_INFO, *LPMONTHCAL_INFO;
     70char *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
     71                  "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", NULL};
    1872
     73char *days[] = {"Sunday", "Monday", "Tuesday", "Wednesday",
     74                "Thursday", "Friday", "Saturday", NULL};
     75
     76char *monthtxt[] = {"January", "February", "March", "April", "May",
     77                      "June", "July", "August", "September", "October",
     78                      "November", "December"};
     79
     80char *daytxt[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
     81int DayOfWeekTable[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
     82*/
     83extern void MONTHCAL_CopyTime (const SYSTEMTIME *from, SYSTEMTIME *to);
     84extern int MONTHCAL_CalculateDayOfWeek (DWORD day, DWORD month, DWORD year);
    1985
    2086extern VOID MONTHCAL_Register (VOID);
  • trunk/include/win/treeview.h

    r94 r499  
    1 /* $Id: treeview.h,v 1.3 1999-06-10 16:21:51 achimha Exp $ */
     1/* $Id: treeview.h,v 1.4 1999-08-14 17:23:24 achimha Exp $ */
    22/*
    33 * Treeview class extra info
     
    1515#define TV_REFRESH_DELAY 100     /* 100 ms delay between two refreshes */
    1616#define TV_DEFAULTITEMHEIGHT 16
    17 #define TVITEM_ALLOC    16      /* default nr of items to allocate at first try */
     17#define TVITEM_ALLOC    16      /* default nr of items to allocate at first try */
    1818
    1919
     
    4747typedef struct tagTREEVIEW_INFO
    4848{
    49   UINT          uInternalStatus;   
     49  UINT          uInternalStatus;
    5050  UINT          bAutoSize;      /* merge with uInternalStatus */
    5151  INT           Timer;
    5252  UINT          uNumItems;      /* number of valid TREEVIEW_ITEMs */
    53   UINT          uNumPtrsAlloced; 
     53  UINT          uNumPtrsAlloced;
    5454  HTREEITEM     uMaxHandle;     /* needed for delete_item */
    5555  HTREEITEM     TopRootItem;    /* handle to first item in treeview */
    5656  INT           cdmode;         /* last custom draw setting */
     57  UINT          uScrollTime;    /* max. time for scrolling in milliseconds*/
    5758  UINT          uItemHeight;    /* item height, -1 for default item height */
    5859  UINT          uRealItemHeight;/* current item height in pixels */
    5960  UINT          uVisibleHeight; /* visible height of treeview in pixels */
    6061  UINT          uTotalHeight;   /* total height of treeview in pixels */
    61   UINT          uVisibleWidth;     
    62   UINT          uTotalWidth; 
     62  UINT          uVisibleWidth;
     63  UINT          uTotalWidth;
    6364  UINT          uIndent;        /* indentation in pixels */
    6465  HTREEITEM     selectedItem;   /* handle to selected item or 0 if none */
     
    7071  HIMAGELIST    dragList;       /* Bitmap of dragged item */
    7172  INT           cx,cy;          /* current x/y place in list */
    72   COLORREF      clrBk;   
     73  COLORREF      clrBk;
    7374  COLORREF      clrText;
     75  COLORREF      clrLine;
    7476  HFONT         hFont;
    7577  HFONT         hBoldFont;
     
    7779  HWND          hwndEdit;
    7880  WNDPROC       wpEditOrig;     /* needed for subclassing edit control */
    79   HIMAGELIST    himlNormal; 
     81  HIMAGELIST    himlNormal;
    8082  HIMAGELIST    himlState;
    8183  LPTVSORTCB    pCallBackSort; /* ptr to TVSORTCB struct for callback sorting */
     
    9092/* bitflags for infoPtr->uInternalStatus */
    9193
    92 #define TV_HSCROLL      0x01    /* treeview too large to fit in window */
    93 #define TV_VSCROLL      0x02    /* (horizontal/vertical) */
    94 #define TV_LDRAG                0x04    /* Lbutton pushed to start drag */
    95 #define TV_LDRAGGING    0x08    /* Lbutton pushed, mouse moved.  */
    96 #define TV_RDRAG                0x10    /* dito Rbutton */
    97 #define TV_RDRAGGING    0x20   
     94#define TV_HSCROLL      0x01    /* treeview too large to fit in window */
     95#define TV_VSCROLL      0x02    /* (horizontal/vertical) */
     96#define TV_LDRAG                0x04    /* Lbutton pushed to start drag */
     97#define TV_LDRAGGING    0x08    /* Lbutton pushed, mouse moved.  */
     98#define TV_RDRAG                0x10    /* dito Rbutton */
     99#define TV_RDRAGGING    0x20
    98100
    99101/* bitflags for infoPtr->timer */
    100102
    101 #define TV_REFRESH_TIMER 1     
     103#define TV_REFRESH_TIMER 1
    102104#define TV_EDIT_TIMER    2
    103 #define TV_REFRESH_TIMER_SET 1 
    104 #define TV_EDIT_TIMER_SET 2 
     105#define TV_REFRESH_TIMER_SET 1
     106#define TV_EDIT_TIMER_SET 2
    105107
    106108
  • trunk/include/win/updown.h

    r4 r499  
    1 /* $Id: updown.h,v 1.1 1999-05-24 20:19:20 ktk Exp $ */
     1/* $Id: updown.h,v 1.2 1999-08-14 17:23:24 achimha Exp $ */
    22
    33/*
     
    1313#include "commctrl.h"
    1414
     15#define UPDOWN_BUDDYCLASSNAMELEN 40
     16
    1517typedef struct
    1618{
     
    2224  INT       MaxVal;       /* Maximum up-down value */
    2325  HWND      Buddy;        /* Handle to the buddy window */
    24   CHAR      szBuddyClass[40]; /* Buddy window class name */
     26  CHAR      szBuddyClass[UPDOWN_BUDDYCLASSNAMELEN]; /* Buddy window class name */
    2527  INT       Flags;        /* Internal Flags FLAG_* */
    2628} UPDOWN_INFO;
Note: See TracChangeset for help on using the changeset viewer.