GetShortPathName: always erase characters at the end of the new
[wine/multimedia.git] / include / toolbar.h
blob717fff885d117d0fae690ceb40d1b9a5c1a9b183
1 /*
2 * Toolbar class extra info
4 * Copyright 1998 Eric Kohl
5 */
7 #ifndef __WINE_TOOLBAR_H
8 #define __WINE_TOOLBAR_H
10 #include "commctrl.h"
11 #include "windef.h"
13 typedef struct tagTBUTTON_INFO
15 INT iBitmap;
16 INT idCommand;
17 BYTE fsState;
18 BYTE fsStyle;
19 DWORD dwData;
20 INT iString;
22 BOOL bHot;
23 INT nRow;
24 RECT rect;
25 } TBUTTON_INFO;
28 typedef struct tagTOOLBAR_INFO
30 DWORD dwStructSize; /* size of TBBUTTON struct */
31 INT nHeight; /* height of the toolbar */
32 INT nWidth; /* width of the toolbar */
33 INT nButtonHeight;
34 INT nButtonWidth;
35 INT nBitmapHeight;
36 INT nBitmapWidth;
37 INT nIndent;
38 INT nRows; /* number of button rows */
39 INT nMaxTextRows; /* maximum number of text rows */
40 INT cxMin; /* minimum button width */
41 INT cxMax; /* maximum button width */
42 INT nNumButtons; /* number of buttons */
43 INT nNumBitmaps; /* number of bitmaps */
44 INT nNumStrings; /* number of strings */
45 BOOL bUnicode; /* ASCII (FALSE) or Unicode (TRUE)? */
46 BOOL bCaptured; /* mouse captured? */
47 INT nButtonDown;
48 INT nOldHit;
49 INT nHotItem; /* index of the "hot" item */
50 HFONT hFont; /* text font */
51 HIMAGELIST himlInt; /* image list created internally */
52 HIMAGELIST himlDef; /* default image list */
53 HIMAGELIST himlHot; /* hot image list */
54 HIMAGELIST himlDis; /* disabled image list */
55 HWND hwndToolTip; /* handle to tool tip control */
56 HWND hwndNotify; /* handle to the window that gets notifications */
57 BOOL bTransparent; /* background transparency flag */
58 BOOL bAutoSize; /* auto size deadlock indicator */
59 BOOL bAnchor; /* anchor highlight enabled */
60 DWORD dwExStyle; /* extended toolbar style */
61 DWORD dwDTFlags; /* DrawText flags */
63 COLORREF clrInsertMark; /* insert mark color */
64 RECT rcBound; /* bounding rectangle */
65 INT iVersion;
67 TBUTTON_INFO *buttons; /* pointer to button array */
68 LPWSTR *strings; /* pointer to string array */
69 } TOOLBAR_INFO;
72 extern BOOL WINAPI TBARCUST_DialogProc (HWND, UINT, WPARAM, LPARAM);
74 extern VOID TOOLBAR_Register (VOID);
75 extern VOID TOOLBAR_Unregister (VOID);
77 #endif /* __WINE_TOOLBAR_H */