root / trunk / install / launcher / izpack-launcher-1.3_linux / src / wx / include / wx / msw / missing.h @ 6834
History | View | Annotate | Download (4.63 KB)
1 |
/////////////////////////////////////////////////////////////////////////////
|
---|---|
2 |
// Name: missing.h
|
3 |
// Purpose: Declarations for parts of the Win32 SDK that are missing in
|
4 |
// the version that comes with some compilers
|
5 |
// Created: 2002/04/23
|
6 |
// RCS-ID: $Id: missing.h 6834 2006-08-24 08:23:24Z jmvivo $
|
7 |
// Copyright: (c) 2002 Mattia Barbon
|
8 |
// Licence: wxWindows licence
|
9 |
/////////////////////////////////////////////////////////////////////////////
|
10 |
|
11 |
#ifndef _WX_MISSING_H_
|
12 |
#define _WX_MISSING_H_
|
13 |
|
14 |
// ----------------------------------------------------------------------------
|
15 |
// ListView common control
|
16 |
// ----------------------------------------------------------------------------
|
17 |
|
18 |
#ifndef LVHT_ONITEM
|
19 |
#define LVHT_ONITEM \
|
20 |
(LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON) |
21 |
#endif
|
22 |
|
23 |
#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
|
24 |
#define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54) |
25 |
#endif
|
26 |
|
27 |
#ifndef LVS_EX_FULLROWSELECT
|
28 |
#define LVS_EX_FULLROWSELECT 0x00000020 |
29 |
#endif
|
30 |
|
31 |
#ifndef LVS_OWNERDATA
|
32 |
#define LVS_OWNERDATA 0x1000 |
33 |
#endif
|
34 |
|
35 |
#ifndef LVM_FIRST
|
36 |
#define LVM_FIRST 0x1000 |
37 |
#endif
|
38 |
|
39 |
#ifndef HDM_FIRST
|
40 |
#define HDM_FIRST 0x1200 |
41 |
#endif
|
42 |
|
43 |
#ifndef LVCFMT_JUSTIFYMASK
|
44 |
#define LVCFMT_JUSTIFYMASK 0x0003 |
45 |
#endif
|
46 |
|
47 |
#ifndef LVSICF_NOSCROLL
|
48 |
#define LVSICF_NOSCROLL 0x0002 |
49 |
#endif
|
50 |
|
51 |
#ifndef LVN_ODCACHEHINT
|
52 |
#define LVN_ODCACHEHINT (-113) |
53 |
#endif
|
54 |
|
55 |
#ifndef ListView_GetHeader
|
56 |
#define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0) |
57 |
#endif
|
58 |
|
59 |
#ifndef LVM_GETHEADER
|
60 |
#define LVM_GETHEADER (LVM_FIRST+31) |
61 |
#endif
|
62 |
|
63 |
#ifndef Header_GetItemRect
|
64 |
#define Header_GetItemRect(w,i,r) \
|
65 |
(BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r)) |
66 |
#endif
|
67 |
|
68 |
#ifndef HDM_GETITEMRECT
|
69 |
#define HDM_GETITEMRECT (HDM_FIRST+7) |
70 |
#endif
|
71 |
|
72 |
#ifndef LVCF_IMAGE
|
73 |
#define LVCF_IMAGE 0x0010 |
74 |
#endif
|
75 |
|
76 |
#ifndef LVCFMT_BITMAP_ON_RIGHT
|
77 |
#define LVCFMT_BITMAP_ON_RIGHT 0x1000 |
78 |
#endif
|
79 |
|
80 |
#ifndef ListView_GetColumnWidth
|
81 |
#define ListView_GetColumnWidth(hwnd, iCol) \
|
82 |
(int)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(int)(iCol), 0) |
83 |
#endif
|
84 |
|
85 |
#ifndef ListView_SetColumnWidth
|
86 |
#define ListView_SetColumnWidth(hwnd, iCol, cx) \
|
87 |
(BOOL)SNDMSG((hwnd), LVM_SETCOLUMNWIDTH, (WPARAM)(int)(iCol), MAKELPARAM((cx), 0)) |
88 |
#endif
|
89 |
|
90 |
#ifndef ListView_GetTextColor
|
91 |
#define ListView_GetTextColor(hwnd) \
|
92 |
(COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0L) |
93 |
#endif
|
94 |
|
95 |
#ifndef ListView_FindItem
|
96 |
#define ListView_FindItem(hwnd, iStart, plvfi) \
|
97 |
(int)SNDMSG((hwnd), LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LV_FINDINFO FAR*)(plvfi)) |
98 |
#endif
|
99 |
|
100 |
#ifndef HDN_GETDISPINFOW
|
101 |
#define HDN_GETDISPINFOW (HDN_FIRST-29) |
102 |
#endif
|
103 |
|
104 |
// ----------------------------------------------------------------------------
|
105 |
// Toolbar define value missing
|
106 |
// ----------------------------------------------------------------------------
|
107 |
#if !defined(CCS_VERT)
|
108 |
#define CCS_VERT 0x00000080L |
109 |
#endif
|
110 |
|
111 |
// ----------------------------------------------------------------------------
|
112 |
// MS HTML Help
|
113 |
// ----------------------------------------------------------------------------
|
114 |
|
115 |
// instead of including htmlhelp.h, duplicate the things from it we need here:
|
116 |
|
117 |
enum
|
118 |
{ |
119 |
HH_DISPLAY_TOPIC, |
120 |
HH_DISPLAY_TOC, |
121 |
HH_DISPLAY_INDEX, |
122 |
HH_DISPLAY_SEARCH, |
123 |
HH_SET_WIN_TYPE, |
124 |
HH_GET_WIN_TYPE, |
125 |
HH_GET_WIN_HANDLE, |
126 |
HH_ENUM_INFO_TYPE, |
127 |
HH_SET_INFO_TYPE, |
128 |
HH_SYNC, |
129 |
HH_RESERVED1, |
130 |
HH_RESERVED2, |
131 |
HH_RESERVED3, |
132 |
HH_KEYWORD_LOOKUP, |
133 |
HH_DISPLAY_TEXT_POPUP, |
134 |
HH_HELP_CONTEXT, |
135 |
HH_TP_HELP_CONTEXTMENU, |
136 |
HH_TP_HELP_WM_HELP, |
137 |
HH_CLOSE_ALL, |
138 |
HH_ALINK_LOOKUP, |
139 |
HH_GET_LAST_ERROR, |
140 |
HH_ENUM_CATEGORY, |
141 |
HH_ENUM_CATEGORY_IT, |
142 |
HH_RESET_IT_FILTER, |
143 |
HH_SET_INCLUSIVE_FILTER, |
144 |
HH_SET_EXCLUSIVE_FILTER |
145 |
}; |
146 |
|
147 |
struct HH_POPUP
|
148 |
{ |
149 |
int cbStruct;
|
150 |
HINSTANCE hinst; |
151 |
UINT idString; |
152 |
LPCTSTR pszText; |
153 |
POINT pt; |
154 |
COLORREF clrForeground; |
155 |
COLORREF clrBackground; |
156 |
RECT rcMargins; |
157 |
LPCTSTR pszFont; |
158 |
}; |
159 |
|
160 |
struct HH_AKLINK
|
161 |
{ |
162 |
int cbStruct;
|
163 |
BOOL fReserved; |
164 |
LPCTSTR pszKeywords; |
165 |
LPCTSTR pszUrl; |
166 |
LPCTSTR pszMsgText; |
167 |
LPCTSTR pszMsgTitle; |
168 |
LPCTSTR pszWindow; |
169 |
BOOL fIndexOnFail; |
170 |
}; |
171 |
|
172 |
|
173 |
// ----------------------------------------------------------------------------
|
174 |
// Misc stuff
|
175 |
// ----------------------------------------------------------------------------
|
176 |
|
177 |
#ifndef QS_ALLPOSTMESSAGE
|
178 |
#define QS_ALLPOSTMESSAGE 0x0100 |
179 |
#endif
|
180 |
|
181 |
#ifdef __WXWINE__
|
182 |
#define LV_ITEMA LVITEMA
|
183 |
#define LV_ITEMW LVITEMW
|
184 |
#define LV_DISPINFOA NMLVDISPINFOA
|
185 |
#define LV_DISPINFOW NMLVDISPINFOW
|
186 |
|
187 |
#if wxUSE_UNICODE
|
188 |
#define LV_FINDINFO LVFINDINFOW
|
189 |
#else
|
190 |
#define LV_FINDINFO LVFINDINFOA
|
191 |
#endif
|
192 |
|
193 |
#endif
|
194 |
|
195 |
#endif
|
196 |
// _WX_MISSING_H_
|