| 1 | /* $Id: toolbar.h,v 1.1 1999-05-24 20:19:20 ktk Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Toolbar class extra info
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright 1998 Eric Kohl
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #ifndef __WINE_TOOLBAR_H
|
|---|
| 10 | #define __WINE_TOOLBAR_H
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | typedef struct tagTBUTTON_INFO
|
|---|
| 14 | {
|
|---|
| 15 | INT iBitmap;
|
|---|
| 16 | INT idCommand;
|
|---|
| 17 | BYTE fsState;
|
|---|
| 18 | BYTE fsStyle;
|
|---|
| 19 | DWORD dwData;
|
|---|
| 20 | INT iString;
|
|---|
| 21 |
|
|---|
| 22 | BOOL bHot;
|
|---|
| 23 | INT nRow;
|
|---|
| 24 | RECT rect;
|
|---|
| 25 | } TBUTTON_INFO;
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | typedef struct tagTOOLBAR_INFO
|
|---|
| 29 | {
|
|---|
| 30 | DWORD dwStructSize; /* size of TBBUTTON struct */
|
|---|
| 31 | INT nHeight; /* height of the toolbar */
|
|---|
| 32 | INT nWidth; /* width of the toolbar */
|
|---|
| 33 | INT nButtonHeight;
|
|---|
| 34 | INT nButtonWidth;
|
|---|
| 35 | INT nBitmapHeight;
|
|---|
| 36 | INT nBitmapWidth;
|
|---|
| 37 | INT nIndent;
|
|---|
| 38 | INT nRows; /* number of button rows */
|
|---|
| 39 | INT nMaxTextRows; /* maximum number of text rows */
|
|---|
| 40 | INT cxMin; /* minimum button width */
|
|---|
| 41 | INT cxMax; /* maximum button width */
|
|---|
| 42 | INT nNumButtons; /* number of buttons */
|
|---|
| 43 | INT nNumBitmaps; /* number of bitmaps */
|
|---|
| 44 | INT nNumStrings; /* number of strings */
|
|---|
| 45 | BOOL bUnicode; /* ASCII (FALSE) or Unicode (TRUE)? */
|
|---|
| 46 | BOOL bCaptured; /* mouse captured? */
|
|---|
| 47 | INT nButtonDown;
|
|---|
| 48 | INT nOldHit;
|
|---|
| 49 | INT nHotItem; /* index of the "hot" item */
|
|---|
| 50 | HFONT hFont; /* text font */
|
|---|
| 51 | HIMAGELIST himlStd; /* standard image list for TB_ADDBITMAP command*/
|
|---|
| 52 | HIMAGELIST himlDef; /* default image list for TB_SETIMAGELIST*/
|
|---|
| 53 | HIMAGELIST himlHot; /* hot image list */
|
|---|
| 54 | HIMAGELIST himlDis; /* disabled image list */
|
|---|
| 55 | HWND hwndToolTip; /* handle to tool tip control */
|
|---|
| 56 | HWND hwndNotify; /* handle to the window that gets notifications */
|
|---|
| 57 | BOOL bTransparent; /* background transparency flag */
|
|---|
| 58 | BOOL bAutoSize; /* auto size deadlock indicator */
|
|---|
| 59 | DWORD dwExStyle; /* extended toolbar style */
|
|---|
| 60 | DWORD dwDTFlags; /* DrawText flags */
|
|---|
| 61 |
|
|---|
| 62 | COLORREF clrInsertMark; /* insert mark color */
|
|---|
| 63 | RECT rcBound; /* bounding rectangle */
|
|---|
| 64 |
|
|---|
| 65 | TBUTTON_INFO *buttons; /* pointer to button array */
|
|---|
| 66 | LPWSTR *strings; /* pointer to string array */
|
|---|
| 67 | } TOOLBAR_INFO;
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | extern VOID TOOLBAR_Register (VOID);
|
|---|
| 71 | extern VOID TOOLBAR_Unregister (VOID);
|
|---|
| 72 |
|
|---|
| 73 | #endif /* __WINE_TOOLBAR_H */
|
|---|