Add IsWindow() checks after SendMessage() returns.
[wine/wine64.git] / include / toolbar.h
blob2c943c0ce15ef98d3b63881e71b5cc70af492827
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 INT nRow;
21 RECT rect;
22 } TBUTTON_INFO;
25 typedef struct tagTOOLBAR_INFO
27 DWORD dwStructSize; /* size of TBBUTTON struct */
28 INT nHeight; /* height of the toolbar */
29 INT nWidth; /* width of the toolbar */
30 INT nButtonHeight;
31 INT nButtonWidth;
32 INT nBitmapHeight;
33 INT nBitmapWidth;
34 INT nIndent;
35 INT nRows; /* number of button rows */
36 INT nMaxTextRows; /* maximum number of text rows */
37 INT cxMin; /* minimum button width */
38 INT cxMax; /* maximum button width */
39 INT nNumButtons; /* number of buttons */
40 INT nNumBitmaps; /* number of bitmaps */
41 INT nNumStrings; /* number of strings */
42 BOOL bUnicode; /* ASCII (FALSE) or Unicode (TRUE)? */
43 BOOL bCaptured; /* mouse captured? */
44 INT nButtonDown;
45 INT nOldHit;
46 INT nHotItem; /* index of the "hot" item */
47 HFONT hFont; /* text font */
48 HIMAGELIST himlStd; /* standard image list */
49 HIMAGELIST himlDef; /* default image list */
50 HIMAGELIST himlHot; /* hot image list */
51 HIMAGELIST himlDis; /* disabled image list */
52 HWND hwndToolTip; /* handle to tool tip control */
53 HWND hwndNotify; /* handle to the window that gets notifications */
54 BOOL bTransparent; /* background transparency flag */
55 BOOL bAutoSize; /* auto size deadlock indicator */
56 DWORD dwExStyle; /* extended toolbar style */
57 DWORD dwDTFlags; /* DrawText flags */
59 COLORREF clrInsertMark; /* insert mark color */
60 RECT rcBound; /* bounding rectangle */
62 TBUTTON_INFO *buttons; /* pointer to button array */
63 LPWSTR *strings; /* pointer to string array */
64 } TOOLBAR_INFO;
67 extern VOID TOOLBAR_Register (VOID);
68 extern VOID TOOLBAR_Unregister (VOID);
70 #endif /* __WINE_TOOLBAR_H */