| 1 | /* $Id: tab.h,v 1.4 2000-05-22 17:18:55 cbratschi Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Tab control class extra info
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright 1998 Anders Carlsson
|
|---|
| 7 | * Copyright 1999 Christoph Bratschi
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef __WINE_TAB_H
|
|---|
| 11 | #define __WINE_TAB_H
|
|---|
| 12 |
|
|---|
| 13 | typedef struct tagTAB_ITEM
|
|---|
| 14 | {
|
|---|
| 15 | UINT mask;
|
|---|
| 16 | DWORD dwState;
|
|---|
| 17 | LPWSTR 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;
|
|---|
| 25 |
|
|---|
| 26 | typedef struct tagTAB_INFO
|
|---|
| 27 | {
|
|---|
| 28 | COMCTL32_HEADER header;
|
|---|
| 29 |
|
|---|
| 30 | UINT uNumItem; /* number of tab items */
|
|---|
| 31 | UINT uNumRows; /* number of tab rows */
|
|---|
| 32 | INT tabHeight; /* height of the tab row */
|
|---|
| 33 | INT tabWidth; /* width of tabs */
|
|---|
| 34 | HFONT hFont; /* handle to the current font */
|
|---|
| 35 | HCURSOR hcurArrow; /* handle to the current cursor */
|
|---|
| 36 | HIMAGELIST himl; /* handle to a image list (may be 0) */
|
|---|
| 37 | HWND hwndToolTip; /* handle to tab's tooltip */
|
|---|
| 38 | UINT cchTextMax;
|
|---|
| 39 | INT leftmostVisible; /* Used for scrolling, this member contains
|
|---|
| 40 | * the index of the first visible item */
|
|---|
| 41 | INT iSelected; /* the currently selected item */
|
|---|
| 42 | INT iHotTracked; /* the highlighted item under the mouse */
|
|---|
| 43 | INT uFocus; /* item which has the focus */
|
|---|
| 44 | TAB_ITEM* items; /* pointer to an array of TAB_ITEM's */
|
|---|
| 45 | BOOL DoRedraw; /* flag for redrawing when tab contents is changed*/
|
|---|
| 46 | BOOL needsScrolling; /* TRUE if the size of the tabs is greater than
|
|---|
| 47 | * the size of the control */
|
|---|
| 48 | BOOL fSizeSet; /* was the size of the tabs explicitly set? */
|
|---|
| 49 | HWND hwndUpDown; /* Updown control used for scrolling */
|
|---|
| 50 | } TAB_INFO;
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | extern VOID TAB_Register (VOID);
|
|---|
| 54 | extern VOID TAB_Unregister (VOID);
|
|---|
| 55 |
|
|---|
| 56 | #endif /* __WINE_TAB_H */
|
|---|