source: trunk/include/win/toolbar.h@ 2125

Last change on this file since 2125 was 2125, checked in by achimha, 26 years ago

WINE 991212 changes

File size: 2.8 KB
Line 
1/* $Id: toolbar.h,v 1.5 1999-12-18 20:52:07 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
15typedef 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 INT nCustomID;
32} TBUTTON_INFO;
33
34
35typedef struct tagTOOLBAR_INFO
36{
37 DWORD dwStructSize; /* size of TBBUTTON struct */
38 INT nHeight; /* height of the toolbar */
39 INT nWidth; /* width of the toolbar */
40 INT nButtonHeight;
41 INT nButtonWidth;
42 INT nBitmapHeight;
43 INT nBitmapWidth;
44 INT nIndent;
45 INT nRows; /* number of button rows */
46 INT nMaxTextRows; /* maximum number of text rows */
47 INT cxMin; /* minimum button width */
48 INT cxMax; /* maximum button width */
49 INT nNumButtons; /* number of buttons */
50 INT nNumBitmaps; /* number of bitmaps */
51 INT nNumStrings; /* number of strings */
52 BOOL bUnicode; /* ASCII (FALSE) or Unicode (TRUE)? */
53 BOOL bCaptured; /* mouse captured? */
54 INT nButtonDown;
55 INT nOldHit;
56 INT nHotItem; /* index of the "hot" item */
57 HFONT hFont; /* text font */
58 HIMAGELIST himlInt; /* image list created internally */
59 HIMAGELIST himlDef; /* default image list for TB_SETIMAGELIST*/
60 HIMAGELIST himlHot; /* hot image list */
61 HIMAGELIST himlDis; /* disabled image list */
62 HWND hwndToolTip; /* handle to tool tip control */
63 HWND hwndNotify; /* handle to the window that gets notifications */
64 BOOL bTransparent; /* background transparency flag */
65 BOOL bAutoSize; /* auto size deadlock indicator */
66 BOOL bAnchor; /* anchor highlight enabled */
67 DWORD dwExStyle; /* extended toolbar style */
68 DWORD dwDTFlags; /* DrawText flags */
69
70 COLORREF clrInsertMark; /* insert mark color */
71 RECT rcBound; /* bounding rectangle */
72 INT iVersion;
73
74 TBUTTON_INFO *buttons; /* pointer to button array */
75 LPWSTR *strings; /* pointer to string array */
76 //Customize dialog
77 HWND hwndToolbar;
78 TBUTTON_INFO* oldButtons;
79 INT nNumOldButtons;
80 INT nMaxCustomID;
81} TOOLBAR_INFO;
82
83
84extern VOID TOOLBAR_Register (VOID);
85extern VOID TOOLBAR_Unregister (VOID);
86
87#endif /* __WINE_TOOLBAR_H */
88
Note: See TracBrowser for help on using the repository browser.