Separated 32 bit functions to shellole.c.
[wine/multimedia.git] / include / tab.h
blob9279b8c71100b7a40b790eea8cdbdf08ff801706
1 /*
2 * Tab control class extra info
4 * Copyright 1998 Anders Carlsson
5 */
7 #ifndef __WINE_TAB_H
8 #define __WINE_TAB_H
10 #include "commctrl.h"
11 #include "windef.h"
13 typedef struct tagTAB_ITEM
15 UINT mask;
16 DWORD dwState;
17 LPSTR pszText;
18 INT cchTextMax;
19 INT iImage;
20 LPARAM lParam;
21 RECT rect; /* bounding rectangle of the item relative to the
22 * leftmost item (the leftmost item, 0, would have a
23 * "left" member of 0 in this rectangle) */
24 } TAB_ITEM;
26 typedef struct tagTAB_INFO
28 UINT uNumItem; /* number of tab items */
29 INT tabHeight; /* height of the tab row */
30 INT tabWidth; /* width of tabs */
31 HFONT hFont; /* handle to the current font */
32 HCURSOR hcurArrow; /* handle to the current cursor */
33 HIMAGELIST himl; /* handle to a image list (may be 0) */
34 HWND hwndToolTip; /* handle to tab's tooltip */
35 UINT cchTextMax;
36 INT leftmostVisible; /* Used for scrolling, this member contains
37 * the index of the first visible item */
38 INT iSelected; /* the currently selected item */
39 INT uFocus; /* item which has the focus */
40 TAB_ITEM* items; /* pointer to an array of TAB_ITEM's */
41 BOOL DoRedraw; /* flag for redrawing when tab contents is changed*/
42 BOOL needsScrolling; /* TRUE if the size of the tabs is greater than
43 * the size of the control */
44 BOOL fSizeSet; /* was the size of the tabs explicitly set? */
45 HWND hwndUpDown; /* Updown control used for scrolling */
46 } TAB_INFO;
49 extern VOID TAB_Register (VOID);
50 extern VOID TAB_Unregister (VOID);
52 #endif /* __WINE_TAB_H */