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