source: trunk/include/win/header.h@ 1142

Last change on this file since 1142 was 1142, checked in by cbratschi, 26 years ago

* empty log message *

File size: 2.1 KB
Line 
1/* $Id: header.h,v 1.4 1999-10-05 17:34:18 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
14typedef 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
32typedef 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 bTrackOpen;
44 BOOL bUnicode; /* Unicode flag */
45 INT iMoveItem; /* index of tracked item. (Tracking mode) */
46 INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
47 INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
48 INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
49 INT iHotItem; /* index of hot item (cursor is over this item) */
50 INT xBmpMargin;
51
52 HIMAGELIST himl; /* handle to a image list (may be 0) */
53 HEADER_ITEM *items; /* pointer to array of HEADER_ITEM's */
54 LPINT pOrder; /* pointer to order array */
55} HEADER_INFO;
56
57
58extern VOID HEADER_Register (VOID);
59extern VOID HEADER_Unregister (VOID);
60
61#endif /* __WINE_HEADER_H_ */
Note: See TracBrowser for help on using the repository browser.