| 1 | /* $Id: header.h,v 1.7 1999-10-07 21:00:05 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 bTrackOpen;
|
|---|
| 44 | BOOL bDragDrop;
|
|---|
| 45 | BOOL bTimer;
|
|---|
| 46 | BOOL bUnicode; /* Unicode flag */
|
|---|
| 47 | INT iMoveItem; /* index of tracked item. (Tracking mode) */
|
|---|
| 48 | INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
|
|---|
| 49 | INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
|
|---|
| 50 | INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
|
|---|
| 51 | INT iHotItem; /* index of hot item (cursor is over this item) */
|
|---|
| 52 | INT xBmpMargin;
|
|---|
| 53 |
|
|---|
| 54 | HIMAGELIST himl; /* handle to a image list (may be 0) */
|
|---|
| 55 | HIMAGELIST dragImage;
|
|---|
| 56 | POINT dragStart;
|
|---|
| 57 | POINT dragPos;
|
|---|
| 58 | INT iDragItem;
|
|---|
| 59 | HEADER_ITEM *items; /* pointer to array of HEADER_ITEM's */
|
|---|
| 60 | } HEADER_INFO;
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | extern VOID HEADER_Register (VOID);
|
|---|
| 64 | extern VOID HEADER_Unregister (VOID);
|
|---|
| 65 |
|
|---|
| 66 | #endif /* __WINE_HEADER_H_ */
|
|---|