Top level windows with 0 width or height are created with a size of 1x1 in
[wine] / include / rebar.h
1 /*
2  * Rebar class extra info
3  *
4  * Copyright 1998 Eric Kohl
5  */
6
7 #ifndef __WINE_REBAR_H
8 #define __WINE_REBAR_H
9
10 #include "commctrl.h"
11 #include "windef.h"
12 #include "wingdi.h"
13
14 typedef struct tagREBAR_BAND
15 {
16     UINT    fStyle;
17     COLORREF  clrFore;
18     COLORREF  clrBack;
19     INT     iImage;
20     HWND    hwndChild;
21     UINT    cxMinChild;
22     UINT    cyMinChild;
23     UINT    cx;
24     HBITMAP hbmBack;
25     UINT    wID;
26     UINT    cyChild;
27     UINT    cyMaxChild;
28     UINT    cyIntegral;
29     UINT    cxIdeal;
30     LPARAM    lParam;
31     UINT    cxHeader;
32
33     UINT    uMinHeight;
34     UINT    fDraw;          /* drawing flags */
35     RECT    rcBand;         /* calculated band rectangle */
36     RECT    rcGripper;      /* calculated gripper rectangle */
37     RECT    rcCapImage;     /* calculated caption image rectangle */
38     RECT    rcCapText;      /* calculated caption text rectangle */
39     RECT    rcChild;        /* calculated child rectangle */
40
41     LPWSTR    lpText;
42     HWND    hwndPrevParent;
43 } REBAR_BAND;
44
45 typedef struct tagREBAR_INFO
46 {
47     COLORREF   clrBk;       /* background color */
48     COLORREF   clrText;     /* text color */
49     HIMAGELIST himl;        /* handle to imagelist */
50     UINT     uNumBands;   /* number of bands in the rebar */
51     HWND     hwndToolTip; /* handle to the tool tip control */
52     HWND     hwndNotify;  /* notification window (parent) */
53     HFONT    hFont;       /* handle to the rebar's font */
54     SIZE     imageSize;   /* image size (image list) */
55
56     SIZE     calcSize;    /* calculated rebar size */
57     BOOL     bAutoResize; /* auto resize deadlock flag */
58     BOOL     bUnicode;    /* Unicode flag */
59     HCURSOR  hcurArrow;   /* handle to the arrow cursor */
60     HCURSOR  hcurHorz;    /* handle to the EW cursor */
61     HCURSOR  hcurVert;    /* handle to the NS cursor */
62     HCURSOR  hcurDrag;    /* handle to the drag cursor */
63     INT      iVersion;    /* version number */
64
65     REBAR_BAND *bands;      /* pointer to the array of rebar bands */
66
67 } REBAR_INFO;
68
69
70 extern VOID REBAR_Register (VOID);
71 extern VOID REBAR_Unregister (VOID);
72
73 #endif  /* __WINE_REBAR_H */