1 | /* $Id: header.h,v 1.3 1999-10-04 16:01:30 cbratschi Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Header window definitions
|
---|
5 | *
|
---|
6 | * Copyright 1998 Eric Kohl
|
---|
7 | * Copyright 1999 Christoph Bratschi
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef __WINE_HEADER_H_
|
---|
12 | #define __WINE_HEADER_H_
|
---|
13 |
|
---|
14 | typedef struct
|
---|
15 | {
|
---|
16 | INT cxy;
|
---|
17 | HBITMAP hbm;
|
---|
18 | LPWSTR pszText;
|
---|
19 | INT cchTextMax;
|
---|
20 | INT fmt;
|
---|
21 | LPARAM lParam;
|
---|
22 | INT iImage;
|
---|
23 | INT iOrder; /* see documentation of HD_ITEM */
|
---|
24 | UINT type;
|
---|
25 | LPVOID pvFilter;
|
---|
26 |
|
---|
27 | BOOL bDown; /* is item pressed? (used for drawing) */
|
---|
28 | RECT rect; /* bounding rectangle of the item */
|
---|
29 | } HEADER_ITEM;
|
---|
30 |
|
---|
31 |
|
---|
32 | typedef struct
|
---|
33 | {
|
---|
34 | UINT uNumItem; /* number of items (columns) */
|
---|
35 | INT nHeight; /* height of the header (pixels) */
|
---|
36 | HFONT hFont; /* handle to the current font */
|
---|
37 | HCURSOR hcurArrow; /* handle to the arrow cursor */
|
---|
38 | HCURSOR hcurDivider; /* handle to a cursor (used over dividers) <-|-> */
|
---|
39 | HCURSOR hcurDivopen; /* handle to a cursor (used over dividers) <-||-> */
|
---|
40 | BOOL bCaptured; /* Is the mouse captured? */
|
---|
41 | BOOL bPressed; /* Is a header item pressed (down)? */
|
---|
42 | BOOL bTracking; /* Is in tracking mode? */
|
---|
43 | BOOL bUnicode; /* Unicode flag */
|
---|
44 | INT iMoveItem; /* index of tracked item. (Tracking mode) */
|
---|
45 | INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
|
---|
46 | INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
|
---|
47 | INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
|
---|
48 | INT iHotItem; /* index of hot item (cursor is over this item) */
|
---|
49 | INT xBmpMargin;
|
---|
50 |
|
---|
51 | HIMAGELIST himl; /* handle to a image list (may be 0) */
|
---|
52 | HEADER_ITEM *items; /* pointer to array of HEADER_ITEM's */
|
---|
53 | LPINT pOrder; /* pointer to order array */
|
---|
54 | } HEADER_INFO;
|
---|
55 |
|
---|
56 |
|
---|
57 | extern VOID HEADER_Register (VOID);
|
---|
58 | extern VOID HEADER_Unregister (VOID);
|
---|
59 |
|
---|
60 | #endif /* __WINE_HEADER_H_ */
|
---|