Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 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 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 10 | typedef struct tagREBAR_BAND |
| 11 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 12 | UINT fStyle; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 13 | COLORREF clrFore; |
| 14 | COLORREF clrBack; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 15 | 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 Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 26 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 27 | UINT cxHeader; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 29 | 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 Kohl | b075ce5 | 1998-10-24 10:47:25 +0000 | [diff] [blame] | 36 | |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 37 | LPWSTR lpText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 38 | HWND hwndPrevParent; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 39 | } REBAR_BAND; |
| 40 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 41 | typedef struct tagREBAR_INFO |
| 42 | { |
Eric Kohl | b075ce5 | 1998-10-24 10:47:25 +0000 | [diff] [blame] | 43 | COLORREF clrBk; /* background color */ |
| 44 | COLORREF clrText; /* text color */ |
| 45 | HIMAGELIST himl; /* handle to imagelist */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 46 | 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 Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 51 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 52 | 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 Kohl | b075ce5 | 1998-10-24 10:47:25 +0000 | [diff] [blame] | 59 | |
| 60 | REBAR_BAND *bands; /* pointer to the array of rebar bands */ |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 61 | |
| 62 | } REBAR_INFO; |
| 63 | |
| 64 | |
Eric Kohl | b075ce5 | 1998-10-24 10:47:25 +0000 | [diff] [blame] | 65 | extern VOID REBAR_Register (VOID); |
| 66 | extern VOID REBAR_Unregister (VOID); |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 67 | |
| 68 | #endif /* __WINE_REBAR_H */ |