Release 990226.
[wine/gsoc-2012-control.git] / include / header.h
blob9d3ada91ec49a65afbe4b61d0aeaf2714ca6c6d9
1 /*
2 * Header window definitions
4 * Copyright 1998 Eric Kohl
6 */
8 #ifndef __WINE_HEADER_H_
9 #define __WINE_HEADER_H_
11 typedef struct
13 INT cxy;
14 HBITMAP hbm;
15 LPWSTR pszText;
16 INT fmt;
17 LPARAM lParam;
18 INT iImage;
19 INT iOrder; /* see documentation of HD_ITEM */
21 BOOL bDown; /* is item pressed? (used for drawing) */
22 RECT rect; /* bounding rectangle of the item */
23 } HEADER_ITEM;
26 typedef struct
28 UINT uNumItem; /* number of items (columns) */
29 INT nHeight; /* height of the header (pixels) */
30 HFONT hFont; /* handle to the current font */
31 HCURSOR hcurArrow; /* handle to the arrow cursor */
32 HCURSOR hcurDivider; /* handle to a cursor (used over dividers) <-|-> */
33 HCURSOR hcurDivopen; /* handle to a cursor (used over dividers) <-||-> */
34 BOOL bCaptured; /* Is the mouse captured? */
35 BOOL bPressed; /* Is a header item pressed (down)? */
36 BOOL bTracking; /* Is in tracking mode? */
37 BOOL bUnicode; /* Unicode flag */
38 INT iMoveItem; /* index of tracked item. (Tracking mode) */
39 INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
40 INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
41 INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
42 INT 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 LPINT pOrder; /* pointer to order array */
47 } HEADER_INFO;
50 extern VOID HEADER_Register (VOID);
51 extern VOID HEADER_Unregister (VOID);
53 #endif /* __WINE_HEADER_H_ */