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