2 * Header window definitions
4 * Copyright 1998 Eric Kohl
8 #ifndef __WINE_HEADER_H_
9 #define __WINE_HEADER_H_
19 INT32 iOrder; /* see documentation of HD_ITEM */
21 BOOL32 bDown; /* is item pressed? (used for drawing) */
22 RECT32 rect; /* bounding rectangle of the item */
28 UINT32 uNumItem; /* number of items (columns) */
29 INT32 nHeight; /* height of the header (pixels) */
30 HFONT32 hFont; /* handle to the current font */
31 HCURSOR32 hcurArrow; /* handle to the arrow cursor */
32 HCURSOR32 hcurDivider; /* handle to a cursor (used over dividers) <-|-> */
33 HCURSOR32 hcurDivopen; /* handle to a cursor (used over dividers) <-||-> */
34 BOOL32 bCaptured; /* Is the mouse captured? */
35 BOOL32 bPressed; /* Is a header item pressed (down)? */
36 BOOL32 bTracking; /* Is in tracking mode? */
37 BOOL32 bUnicode; /* Unicode flag */
38 INT32 iMoveItem; /* index of tracked item. (Tracking mode) */
39 INT32 xTrackOffset; /* distance between the right side of the tracked item and the cursor */
40 INT32 xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
41 INT32 nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
42 INT32 iHotItem; /* index of hot item (cursor is over this item) */
44 HIMAGELIST himl; /* handle to a image list (may be 0) */
45 HEADER_ITEM *items; /* pointer to array of HEADER_ITEM's */
46 LPINT32 pOrder; /* pointer to order array */
50 extern VOID HEADER_Register (VOID);
51 extern VOID HEADER_Unregister (VOID);
53 #endif /* __WINE_HEADER_H_ */