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

Last change on this file since 8082 was 5774, checked in by sandervl, 24 years ago

header update

File size: 2.7 KB
Line 
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
12typedef 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
30typedef 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
62extern "C" {
63#endif
64
65LRESULT HEADER_DeleteItem(HWND hwnd,WPARAM wParam);
66DWORD HEADER_GetExpandedColumnTextWidth(HWND hwnd,INT iItem);
67LRESULT HEADER_GetItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
68LRESULT HEADER_GetItemCount(HWND hwnd);
69LRESULT HEADER_GetItemRect(HWND hwnd,WPARAM wParam,LPARAM lParam);
70LRESULT HEADER_InsertItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
71LRESULT HEADER_SetItem(HWND hwnd,WPARAM wParam,LPARAM lParam,BOOL unicode);
72LRESULT HEADER_SetOrderArray(HWND hwnd,WPARAM wParam,LPARAM lParam);
73LRESULT HEADER_GetOrderArray(HWND hwnd,WPARAM wParam,LPARAM lParam);
74LRESULT HEADER_Layout(HWND hwnd,WPARAM wParam,LPARAM lParam);
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* __WINE_HEADER_H_ */
Note: See TracBrowser for help on using the repository browser.