| 1 | /*
|
|---|
| 2 | * Header window definitions
|
|---|
| 3 | *
|
|---|
| 4 | * Copyright 1998 Eric Kohl
|
|---|
| 5 | * Copyright 1999 Christoph Bratschi
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #ifndef __WINE_HEADER_H_
|
|---|
| 10 | #define __WINE_HEADER_H_
|
|---|
| 11 |
|
|---|
| 12 | typedef struct
|
|---|
| 13 | {
|
|---|
| 14 | INT cxy;
|
|---|
| 15 | HBITMAP hbm;
|
|---|
| 16 | LPWSTR pszText;
|
|---|
| 17 | INT cchTextMax;
|
|---|
| 18 | INT fmt;
|
|---|
| 19 | LPARAM lParam;
|
|---|
| 20 | INT iImage;
|
|---|
| 21 | INT iOrder; /* see documentation of HD_ITEM */
|
|---|
| 22 | UINT type;
|
|---|
| 23 | LPVOID pvFilter;
|
|---|
| 24 |
|
|---|
| 25 | BOOL bDown; /* is item pressed? (used for drawing) */
|
|---|
| 26 | RECT rect; /* bounding rectangle of the item */
|
|---|
| 27 | } HEADER_ITEM;
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | typedef struct
|
|---|
| 31 | {
|
|---|
| 32 | COMCTL32_HEADER header;
|
|---|
| 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 | INT iMoveItem; /* index of tracked item. (Tracking mode) */
|
|---|
| 47 | INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
|
|---|
| 48 | INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
|
|---|
| 49 | INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
|
|---|
| 50 | INT iHotItem; /* index of hot item (cursor is over this item) */
|
|---|
| 51 | INT xBmpMargin;
|
|---|
| 52 |
|
|---|
| 53 | HIMAGELIST himl; /* handle to a image list (may be 0) */
|
|---|
| 54 | HIMAGELIST dragImage;
|
|---|
| 55 | POINT dragStart;
|
|---|
| 56 | POINT dragPos;
|
|---|
| 57 | INT iDragItem;
|
|---|
| 58 | HEADER_ITEM *items; /* pointer to array of HEADER_ITEM's */
|
|---|
| 59 | } HEADER_INFO;
|
|---|
| 60 |
|
|---|
| 61 | #ifdef __cplusplus
|
|---|
| 62 | extern "C" {
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|
| 65 | LRESULT HEADER_DeleteItem(HWND hwnd,WPARAM wParam);
|
|---|
| 66 | DWORD HEADER_GetExpandedColumnTextWidth(HWND hwnd,INT iItem);
|
|---|
| 67 | LRESULT HEADER_GetItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
|
|---|
| 68 | LRESULT HEADER_GetItemCount(HWND hwnd);
|
|---|
| 69 | LRESULT HEADER_GetItemRect(HWND hwnd,WPARAM wParam,LPARAM lParam);
|
|---|
| 70 | LRESULT HEADER_InsertItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
|
|---|
| 71 | LRESULT HEADER_SetItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
|
|---|
| 72 | LRESULT HEADER_SetOrderArray(HWND hwnd,WPARAM wParam,LPARAM lParam);
|
|---|
| 73 | LRESULT HEADER_GetOrderArray(HWND hwnd,WPARAM wParam,LPARAM lParam);
|
|---|
| 74 | LRESULT HEADER_Layout(HWND hwnd,WPARAM wParam,LPARAM lParam);
|
|---|
| 75 |
|
|---|
| 76 | #ifdef __cplusplus
|
|---|
| 77 | }
|
|---|
| 78 | #endif
|
|---|
| 79 |
|
|---|
| 80 | #endif /* __WINE_HEADER_H_ */
|
|---|