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