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