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

Last change on this file since 5120 was 3963, checked in by sandervl, 25 years ago

put back old toolbar+tooltips code

File size: 2.7 KB
Line 
1/* $Id: toolbar.h,v 1.8 2000-08-06 20:31:01 sandervl 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 COMCTL32_HEADER header;
38
39 DWORD dwStructSize; /* size of TBBUTTON struct */
40 INT nHeight; /* height of the toolbar */
41 INT nWidth; /* width of the toolbar */
42 INT nButtonHeight;
43 INT nButtonWidth;
44 INT nBitmapHeight;
45 INT nBitmapWidth;
46 INT nIndent;
47 INT nRows; /* number of button rows */
48 INT nMaxTextRows; /* maximum number of text rows */
49 INT cxMin; /* minimum button width */
50 INT cxMax; /* maximum button width */
51 INT nNumButtons; /* number of buttons */
52 INT nNumBitmaps; /* number of bitmaps */
53 INT nNumStrings; /* number of strings */
54 BOOL bCaptured; /* mouse captured? */
55 INT nButtonDown;
56 INT nOldHit;
57 INT nHotItem; /* index of the "hot" item */
58 HFONT hFont; /* text font */
59 HIMAGELIST himlInt; /* image list created internally */
60 HIMAGELIST himlDef; /* default image list for TB_SETIMAGELIST*/
61 HIMAGELIST himlHot; /* hot image list */
62 HIMAGELIST himlDis; /* disabled image list */
63 HWND hwndToolTip; /* handle to tool tip control */
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
73 TBUTTON_INFO *buttons; /* pointer to button array */
74 LPWSTR *strings; /* pointer to string array */
75
76 //Customize dialog
77 HWND hwndToolbar;
78 TBUTTON_INFO* oldButtons;
79 INT nNumOldButtons;
80 INT nMaxCustomID;
81 BOOL changed;
82} TOOLBAR_INFO;
83
84
85extern VOID TOOLBAR_Register (VOID);
86extern VOID TOOLBAR_Unregister (VOID);
87
88#endif /* __WINE_TOOLBAR_H */
89
Note: See TracBrowser for help on using the repository browser.