blob: f704f311414a362c4858ccb1864acc685af58e84 [file] [log] [blame]
Alexandre Julliard642d3131998-07-12 19:29:36 +00001/*
2 * Rebar class extra info
3 *
4 * Copyright 1998 Eric Kohl
5 */
6
7#ifndef __WINE_REBAR_H
8#define __WINE_REBAR_H
9
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000010typedef struct tagREBAR_BAND
11{
Alexandre Julliarda3960291999-02-26 11:11:13 +000012 UINT fStyle;
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000013 COLORREF clrFore;
14 COLORREF clrBack;
Alexandre Julliarda3960291999-02-26 11:11:13 +000015 INT iImage;
16 HWND hwndChild;
17 UINT cxMinChild;
18 UINT cyMinChild;
19 UINT cx;
20 HBITMAP hbmBack;
21 UINT wID;
22 UINT cyChild;
23 UINT cyMaxChild;
24 UINT cyIntegral;
25 UINT cxIdeal;
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000026 LPARAM lParam;
Alexandre Julliarda3960291999-02-26 11:11:13 +000027 UINT cxHeader;
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000028
Alexandre Julliarda3960291999-02-26 11:11:13 +000029 UINT uMinHeight;
30 UINT fDraw; /* drawing flags */
31 RECT rcBand; /* calculated band rectangle */
32 RECT rcGripper; /* calculated gripper rectangle */
33 RECT rcCapImage; /* calculated caption image rectangle */
34 RECT rcCapText; /* calculated caption text rectangle */
35 RECT rcChild; /* calculated child rectangle */
Eric Kohlb075ce51998-10-24 10:47:25 +000036
Eric Kohl8d2933d1998-11-22 18:12:12 +000037 LPWSTR lpText;
Alexandre Julliarda3960291999-02-26 11:11:13 +000038 HWND hwndPrevParent;
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000039} REBAR_BAND;
40
Alexandre Julliard642d3131998-07-12 19:29:36 +000041typedef struct tagREBAR_INFO
42{
Eric Kohlb075ce51998-10-24 10:47:25 +000043 COLORREF clrBk; /* background color */
44 COLORREF clrText; /* text color */
45 HIMAGELIST himl; /* handle to imagelist */
Alexandre Julliarda3960291999-02-26 11:11:13 +000046 UINT uNumBands; /* number of bands in the rebar */
47 HWND hwndToolTip; /* handle to the tool tip control */
48 HWND hwndNotify; /* notification window (parent) */
49 HFONT hFont; /* handle to the rebar's font */
50 SIZE imageSize; /* image size (image list) */
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000051
Alexandre Julliarda3960291999-02-26 11:11:13 +000052 SIZE calcSize; /* calculated rebar size */
53 BOOL bAutoResize; /* auto resize deadlock flag */
54 BOOL bUnicode; /* Unicode flag */
55 HCURSOR hcurArrow; /* handle to the arrow cursor */
56 HCURSOR hcurHorz; /* handle to the EW cursor */
57 HCURSOR hcurVert; /* handle to the NS cursor */
58 HCURSOR hcurDrag; /* handle to the drag cursor */
Eric Kohlb075ce51998-10-24 10:47:25 +000059
60 REBAR_BAND *bands; /* pointer to the array of rebar bands */
Alexandre Julliard642d3131998-07-12 19:29:36 +000061
62} REBAR_INFO;
63
64
Eric Kohlb075ce51998-10-24 10:47:25 +000065extern VOID REBAR_Register (VOID);
66extern VOID REBAR_Unregister (VOID);
Alexandre Julliard642d3131998-07-12 19:29:36 +000067
68#endif /* __WINE_REBAR_H */