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