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

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

toolbar fixes

File size: 2.7 KB
Line 
1/* $Id: toolbar.h,v 1.4 1999-07-12 05:37:38 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 DWORD dwExStyle; /* extended toolbar style */
67 DWORD dwDTFlags; /* DrawText flags */
68
69 COLORREF clrInsertMark; /* insert mark color */
70 RECT rcBound; /* bounding rectangle */
71
72 TBUTTON_INFO *buttons; /* pointer to button array */
73 LPWSTR *strings; /* pointer to string array */
74 //Customize dialog
75 HWND hwndToolbar;
76 TBUTTON_INFO* oldButtons;
77 INT nNumOldButtons;
78 INT nMaxCustomID;
79} TOOLBAR_INFO;
80
81
82extern VOID TOOLBAR_Register (VOID);
83extern VOID TOOLBAR_Unregister (VOID);
84
85#endif /* __WINE_TOOLBAR_H */
86
Note: See TracBrowser for help on using the repository browser.