Mercurial > projects > dwt-win
annotate dwt/internal/win32/OS.d @ 214:a8fed3e56433
Fix link error and added missing switch defaults
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 19:23:59 +0200 |
parents | 36f5cb12e1a2 |
children | 82b599d21983 |
rev | line source |
---|---|
19 | 1 /******************************************************************************* |
3 | 2 * Copyright (c) 2000, 2007 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
23 | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | |
3 | 12 *******************************************************************************/ |
13 module dwt.internal.win32.OS; | |
14 | |
15 public import dwt.internal.win32.WINTYPES; | |
16 private import dwt.internal.win32.WINAPI; | |
15 | 17 alias dwt.internal.win32.WINAPI WINAPI; |
3 | 18 |
19 import dwt.internal.C; | |
20 import dwt.internal.Library; | |
79 | 21 import tango.sys.SharedLib : SharedLib; |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
22 import tango.sys.Common : SysError; |
94 | 23 static import tango.stdc.stdlib; |
24 | |
213 | 25 import tango.stdc.string : memset, strlen; |
106
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
26 import tango.stdc.stringz : toString16z; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
27 import tango.text.convert.Utf : toString16; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
28 import tango.io.FilePath; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
29 static import tango.io.TempFile; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
30 import tango.io.File; |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
31 |
e4a62cdcd2e0
Added code that creates a manifest file in the temp directory
Jacob Carlborg <doobnet@gmail.com> <jacob.carlborg@gmail.com>
parents:
97
diff
changeset
|
32 |
79 | 33 import tango.util.log.Trace; |
121
e3b3f0fc0c7b
Fix removing the temp file and use the conduit from tango.io.Tempfile. Thanks doob for investigating here.
Frank Benoit <benoit@tionex.de>
parents:
108
diff
changeset
|
34 import tango.io.Console; |
91 | 35 void trace(int line ){ |
94 | 36 //Trace.formatln( "OS {}", line ); |
91 | 37 } |
30 | 38 |
39 // declare of Callback functions | |
40 extern (Windows) | |
41 { | |
42 alias int function() Function0; | |
43 alias int function(void*) Function1; | |
44 alias int function(void*, int) Function2; | |
45 alias int function(void*, int, int) Function3; | |
46 alias int function(void*, int, int, int) Function4; | |
47 alias int function(void*, int, int, int, int) Function5; | |
48 alias int function(void*, int, int, int, int, int) Function6; | |
49 alias int function(void*, int, int, int, int, int, int) Function7; | |
50 alias int function(void*, int, int, int, int, int, int, int) Function8; | |
51 alias int function(void*, int, int, int, int, int, int, int, int) Function9; | |
52 } | |
53 | |
54 | |
77 | 55 /* |
56 Compile time versions | |
57 ANSI | |
58 WinCE | |
59 | |
60 OS.IsUnicode | |
61 OS.IsWinCE | |
62 | |
63 OS.IsHPC | |
64 | |
65 OS.IsSP | |
66 OS.IsPPC | |
67 OS.IsWin95 | |
68 OS.IsWinNT | |
69 | |
70 */ | |
71 | |
108
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
72 public class LDWTRESULT { |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
73 public int value; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
74 // initalize ONE and ZERO in static OS.this(); |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
75 public static LDWTRESULT ONE; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
76 public static LDWTRESULT ZERO; |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
77 public this (int value) { this.value = value; } |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
78 } |
30 | 79 |
80 | |
3 | 81 public class OS : C { |
15 | 82 |
79 | 83 struct Symbol { |
84 char[] name; | |
85 void** symbol; | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
86 int major; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
87 int minor; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
88 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
89 static void loadLib( Symbol[] symbols, char[] libname ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
90 if (auto lib = SharedLib.load(libname)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
91 foreach( inout s; symbols ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
92 if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
93 *s.symbol = lib.getSymbol( s.name.ptr ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
94 if( s.symbol is null ){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
95 Trace.formatln( "{}: Symbol '{}' not found", libname, s.name ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
96 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
97 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
98 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
99 } else { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
100 Trace.formatln( "Could not load the library {}", libname ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
101 } |
79 | 102 } |
103 | |
37 | 104 public static HINSTANCE GetLibraryHandle(){ |
105 //PORTING_FIXME: GetLibraryHandle | |
106 // is the hInstance of the DLL or null, if not a DLL. | |
107 // At the moment DWT is statically linked but this needs to be fixed | |
108 return null; | |
109 } | |
110 | |
78 | 111 // macro from winnt.h |
112 public static int PRIMARYLANGID( int lgid ){ | |
113 return lgid & 0x3FF; | |
114 } | |
37 | 115 |
15 | 116 private static int getNOTIFYICONDATAA_V2_SIZE (){ |
117 // hm, NOTIFYICONDATAA.dwInfoFlags.offsetof did not compile | |
118 return IsWinCE ? NOTIFYICONDATAA.sizeof : cast(int)(&(cast(NOTIFYICONDATAA*)null).dwInfoFlags) + int.sizeof; | |
119 } | |
120 | |
121 private static int getNOTIFYICONDATAW_V2_SIZE (){ | |
122 return IsWinCE ? NOTIFYICONDATAW.sizeof : cast(int)(&(cast(NOTIFYICONDATAW*)null).dwInfoFlags) + int.sizeof; | |
123 } | |
124 | |
3 | 125 /* |
126 * DWT Windows flags | |
127 */ | |
128 public static BOOL IsWin32s; | |
129 public static BOOL IsWin95; | |
130 public static BOOL IsWinNT; | |
131 | |
77 | 132 version(WinCE) { |
3 | 133 public const static BOOL IsWinCE = true; |
77 | 134 public static const BOOL IsHPC = false; //todo |
135 } | |
136 else { | |
3 | 137 public const static BOOL IsWinCE = false; |
77 | 138 public static const BOOL IsHPC = false; |
3 | 139 } |
140 | |
77 | 141 public static const BOOL IsPPC = false; |
39 | 142 |
143 // PORTING_FIXME, is it Windows WFSP? | |
77 | 144 public static const BOOL IsSP = false; |
39 | 145 |
3 | 146 public static const BOOL IsDBLocale; |
147 | |
148 version(ANSI) { | |
149 public const BOOL IsUnicode = false; | |
150 }else{ | |
151 public const BOOL IsUnicode = true; | |
152 } | |
153 | |
154 public static const int WIN32_MAJOR, WIN32_MINOR, WIN32_VERSION; | |
155 public static const int COMCTL32_MAJOR, COMCTL32_MINOR, COMCTL32_VERSION; | |
156 public static const int SHELL32_MAJOR, SHELL32_MINOR, SHELL32_VERSION; | |
157 | |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
158 public static const char[] NO_MANIFEST = "dwt.internal.win32.OS.NO_MANIFEST"; |
3 | 159 |
160 | |
161 /* | |
162 * Flags for Window API GetVersionEx() | |
163 */ | |
164 public static const int VER_PLATFORM_WIN32s = 0; | |
165 public static const int VER_PLATFORM_WIN32_WINDOWS = 1; | |
166 public static const int VER_PLATFORM_WIN32_NT = 2; | |
167 public static const int VER_PLATFORM_WIN32_CE = 3; | |
19 | 168 |
3 | 169 /* Forward references */ |
170 public static const int HEAP_ZERO_MEMORY = 0x8; | |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
171 public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
172 public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
173 public static const int ACTCTX_FLAG_APPLICATION_NAME_VALID = 0x00000020; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
174 public static const int ACTCTX_FLAG_OVERRIDEMANIFEST_VALID = 0x00000100; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
175 public static const TCHAR* MANIFEST_RESOURCE_ID = cast(TCHAR*)2; |
3 | 176 public static const int SM_DBCSENABLED = 0x2A; |
177 public static const int SM_IMMENABLED = 0x52; | |
178 public static const int LANG_KOREAN = 0x12; | |
179 public static const int MAX_PATH = 260; | |
15 | 180 |
82 | 181 // static this(){ |
182 // NOTIFYICONDATAA_V2_SIZE = getNOTIFYICONDATAA_V2_SIZE (); | |
183 // NOTIFYICONDATAW_V2_SIZE = getNOTIFYICONDATAW_V2_SIZE (); | |
184 // NOTIFYICONDATA_V2_SIZE = IsUnicode ? getNOTIFYICONDATAW_V2_SIZE : getNOTIFYICONDATAA_V2_SIZE; | |
185 // OSVERSIONINFO info; | |
186 // IsWin32s = (info.dwPlatformId is VER_PLATFORM_WIN32s); | |
187 // IsWin95 = (info.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS); | |
188 // IsWinNT = (info.dwPlatformId is VER_PLATFORM_WIN32_NT); | |
189 // //IsSP_ = false; | |
190 // //IsPPC_ = false; | |
191 // //IsHPC = false; | |
192 // IsDBLocale = false; | |
193 // WIN32_MAJOR = info.dwMajorVersion; | |
194 // WIN32_MINOR = info.dwMinorVersion; | |
195 // WIN32_VERSION = VERSION (WIN32_MAJOR, WIN32_MINOR); | |
196 // //IsUnicode = !IsWin32s && !IsWin95; | |
197 // DLLVERSIONINFO dvi; | |
198 // COMCTL32_MAJOR = dvi.dwMajorVersion; | |
199 // COMCTL32_MINOR = dvi.dwMinorVersion; | |
200 // COMCTL32_VERSION = VERSION (COMCTL32_MAJOR, COMCTL32_MINOR); | |
201 // SHELL32_MAJOR = dvi.dwMajorVersion; | |
202 // SHELL32_MINOR = dvi.dwMinorVersion; | |
203 // SHELL32_VERSION = VERSION (SHELL32_MAJOR, SHELL32_MINOR); | |
204 // } | |
205 | |
3 | 206 /* Get the Windows version and the flags */ |
207 public static this() { | |
108
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
208 LDWTRESULT.ONE = new LDWTRESULT(1); |
6f75fdfa1bcd
Change LRESULT to class, like done in the old DWT.
Frank Benoit <benoit@tionex.de>
parents:
106
diff
changeset
|
209 LDWTRESULT.ZERO = new LDWTRESULT(0); |
3 | 210 /* |
211 * Try the UNICODE version of GetVersionEx first | |
212 * and then the ANSI version. The UNICODE version | |
213 * is present on all versions of Windows but is not | |
214 * implemented on Win95/98/ME. | |
19 | 215 * |
3 | 216 * NOTE: The value of OSVERSIONINFO.sizeof cannot |
217 * be static final because it relies on the Windows | |
218 * platform version to be initialized and IsUnicode | |
219 * has not been calculated. It must be initialized | |
220 * here, after the platform is determined in order | |
221 * for the value to be correct. | |
222 */ | |
223 OSVERSIONINFO info; | |
224 info.dwOSVersionInfoSize = OSVERSIONINFO.sizeof; | |
225 if(!OS.GetVersionEx(&info)){ | |
82 | 226 MessageBoxA(null, "DWT Unicode version applications can't run in a non-Unicode platform !", "Error", MB_OK|MB_ICONERROR); |
227 tango.stdc.stdlib.exit(-1); | |
3 | 228 } |
229 //OSVERSIONINFO info = new OSVERSIONINFOW (); | |
230 //info.dwOSVersionInfoSize = OSVERSIONINFOW.sizeof; | |
231 //if (!OS.GetVersionExW ((OSVERSIONINFOW)info)) { | |
232 // info = new OSVERSIONINFOA (); | |
233 // info.dwOSVersionInfoSize = OSVERSIONINFOA.sizeof; | |
234 // OS.GetVersionExA ((OSVERSIONINFOA)info); | |
235 //} | |
236 //OSVERSIONINFO.sizeof = info.dwOSVersionInfoSize; | |
237 | |
238 IsWin32s = (info.dwPlatformId is VER_PLATFORM_WIN32s); | |
239 IsWin95 = (info.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS); | |
240 IsWinNT = (info.dwPlatformId is VER_PLATFORM_WIN32_NT); | |
82 | 241 //PORTING_CHANGE: made by version |
242 //IsWinCE = (info.dwPlatformId is VER_PLATFORM_WIN32_CE); | |
243 //PORTING_CHANGE: made by version | |
244 //IsSP = IsSP(); | |
245 //PORTING_CHANGE: made by version | |
246 //IsPPC = IsPPC(); | |
247 version(WinCE) { | |
248 IsHPC = IsWinCE && !IsPPC && !IsSP; | |
249 } | |
3 | 250 WIN32_MAJOR = info.dwMajorVersion; |
251 WIN32_MINOR = info.dwMinorVersion; | |
252 WIN32_VERSION = VERSION (WIN32_MAJOR, WIN32_MINOR); | |
82 | 253 |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
254 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
255 loadLib( Symbols_Kernel32, `Kernel32.dll` ); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
256 } |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
257 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
258 //PORTING_CHANGE: made by version |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
259 //IsUnicode = !IsWin32s && !IsWin95; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
260 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
261 /* Load the manifest to force the XP Theme */ |
189
f804bcfb9e49
don't do the theming stuff for win2k and earlier
Frank Benoit <benoit@tionex.de>
parents:
188
diff
changeset
|
262 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
f804bcfb9e49
don't do the theming stuff for win2k and earlier
Frank Benoit <benoit@tionex.de>
parents:
188
diff
changeset
|
263 enableVisualStyles(); |
f804bcfb9e49
don't do the theming stuff for win2k and earlier
Frank Benoit <benoit@tionex.de>
parents:
188
diff
changeset
|
264 } |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
265 |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
266 // when to load uxtheme |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
267 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
268 loadLib( Symbols_UxTheme, `UxTheme.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
269 } |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
270 if (OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
271 loadLib( Symbols_CoreImm, `Coreimm.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
272 } |
91 | 273 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
274 loadLib( Symbols_User32, `User32.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
275 } |
94 | 276 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (4, 0)) { |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
277 loadLib( Symbols_Imm32, `Imm32.dll` ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
278 } |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
279 |
3 | 280 /* Make the process DPI aware for Windows Vista */ |
281 if (OS.WIN32_VERSION >= OS.VERSION (6, 0)) OS.SetProcessDPIAware (); | |
282 | |
283 /* Get the DBCS flag */ | |
284 BOOL dbcsEnabled = OS.GetSystemMetrics (SM_DBCSENABLED) !is 0; | |
285 BOOL immEnabled = OS.GetSystemMetrics (SM_IMMENABLED) !is 0; | |
286 IsDBLocale = dbcsEnabled || immEnabled; | |
19 | 287 |
3 | 288 /* |
289 * Bug in Windows. On Korean Windows XP when the Text | |
290 * Services Framework support for legacy applications | |
291 * is enabled, certain legacy calls segment fault. | |
292 * For example, when ImmSetCompositionWindow() is used | |
293 * to move the composition window outside of the client | |
294 * area, Windows crashes. The fix is to disable legacy | |
295 * support. | |
19 | 296 * |
3 | 297 * Note: The bug is fixed in Service Pack 2. |
298 */ | |
299 if (!OS.IsWinCE && OS.WIN32_VERSION is OS.VERSION (5, 1)) { | |
300 short langID = OS.GetSystemDefaultUILanguage (); | |
301 short primaryLang = OS.PRIMARYLANGID (langID); | |
302 if (primaryLang is LANG_KOREAN) { | |
82 | 303 OSVERSIONINFOEX infoex; |
3 | 304 infoex.dwOSVersionInfoSize = OSVERSIONINFOEX.sizeof; |
82 | 305 GetVersionEx (cast(OSVERSIONINFO*) &infoex ); |
3 | 306 if (infoex.wServicePackMajor < 2) { |
307 OS.ImmDisableTextFrameService (0); | |
308 } | |
309 } | |
310 } | |
82 | 311 |
312 /* Get the COMCTL32.DLL version */ | |
313 DLLVERSIONINFO dvi; | |
3 | 314 dvi.cbSize = DLLVERSIONINFO.sizeof; |
315 dvi.dwMajorVersion = 4; | |
316 dvi.dwMinorVersion = 0; | |
82 | 317 //PORTING_CHANGE: comctl is loaded automatically |
318 //TCHAR lpLibFileName = new TCHAR (0, "comctl32.dll", true); //$NON-NLS-1$ | |
319 //int /*long*/ hModule = OS.LoadLibrary (lpLibFileName); | |
320 if (auto lib = SharedLib.load( `comctl32.dll`) ) { | |
3 | 321 char[] name = "DllGetVersion\0"; //$NON-NLS-1$ |
82 | 322 void* DllGetVersion = lib.getSymbol(name.ptr); |
323 if (DllGetVersion !is null){ | |
324 alias extern(Windows) void function(DLLVERSIONINFO*) TDllVersion; | |
325 TDllVersion f = cast( TDllVersion )DllGetVersion; | |
326 f(&dvi); | |
3 | 327 } |
82 | 328 lib.unload(); |
3 | 329 } |
330 COMCTL32_MAJOR = dvi.dwMajorVersion; | |
331 COMCTL32_MINOR = dvi.dwMinorVersion; | |
332 COMCTL32_VERSION = VERSION (COMCTL32_MAJOR, COMCTL32_MINOR); | |
82 | 333 |
334 /* Get the Shell32.DLL version */ | |
335 dvi = DLLVERSIONINFO.init; | |
3 | 336 dvi.cbSize = DLLVERSIONINFO.sizeof; |
337 dvi.dwMajorVersion = 4; | |
82 | 338 //TCHAR lpLibFileName = new TCHAR (0, "Shell32.dll", true); //$NON-NLS-1$ |
339 //int /*long*/ hModule = OS.LoadLibrary (lpLibFileName); | |
340 if ( auto lib = SharedLib.load( `Shell32.dll`)) { | |
3 | 341 char[] name = "DllGetVersion\0"; //$NON-NLS-1$ |
82 | 342 void* DllGetVersion = lib.getSymbol(name.ptr); |
343 if (DllGetVersion !is null){ | |
344 alias extern(Windows) void function(DLLVERSIONINFO*) TDllVersion; | |
345 TDllVersion f = cast( TDllVersion )DllGetVersion; | |
346 f(&dvi); | |
3 | 347 } |
82 | 348 lib.unload(); |
3 | 349 } |
350 SHELL32_MAJOR = dvi.dwMajorVersion; | |
351 SHELL32_MINOR = dvi.dwMinorVersion; | |
352 SHELL32_VERSION = VERSION (SHELL32_MAJOR, SHELL32_MINOR); | |
353 } | |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
354 |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
355 /************************************************************************** |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
356 |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
357 **************************************************************************/ |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
358 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
359 public static void enableVisualStyles() { |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
360 void printError( char[] msg ){ |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
361 char[] winMsg = SysError.lastMsg(); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
362 char[2000] buf; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
363 Trace.formatln("{}: {}", msg, CodePage.from( winMsg, buf ) ); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
364 } |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
365 TCHAR[] buffer = new TCHAR[ MAX_PATH ]; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
366 buffer[] = 0; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
367 HANDLE hModule = OS.GetLibraryHandle (); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
368 while (OS.GetModuleFileName (hModule, buffer.ptr, buffer.length ) is buffer.length ) { |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
369 buffer.length = buffer.length + MAX_PATH; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
370 buffer[] = 0; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
371 } |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
372 auto hHeap = OS.GetProcessHeap (); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
373 int byteCount = buffer.length * TCHAR.sizeof; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
374 TCHAR* pszText = cast(TCHAR*) OS.HeapAlloc (hHeap, HEAP_ZERO_MEMORY, byteCount); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
375 OS.MoveMemory (pszText, buffer.ptr, byteCount); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
376 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
377 ACTCTX pActCtx; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
378 pActCtx.cbSize = ACTCTX.sizeof; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
379 pActCtx.dwFlags = 0 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
380 | ACTCTX_FLAG_RESOURCE_NAME_VALID |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
381 | ACTCTX_FLAG_SET_PROCESS_DEFAULT |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
382 ; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
383 pActCtx.lpSource = pszText; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
384 pActCtx.lpApplicationName = pszText; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
385 pActCtx.lpResourceName = MANIFEST_RESOURCE_ID; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
386 HANDLE hActCtx = OS.CreateActCtx (&pActCtx); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
387 if (hActCtx is INVALID_HANDLE_VALUE){ |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
388 printError("CreateActCtx failed" ); |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
389 } |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
390 else{ |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
391 ULONG_PTR ulpActivationCookie; |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
392 if (!OS.ActivateActCtx(hActCtx, &ulpActivationCookie)){ |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
393 printError("ActivateActCtx failed" ); |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
394 } |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
395 } |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
396 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
397 if (pszText !is null){ |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
398 OS.HeapFree (hHeap, 0, pszText); |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
399 } |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
400 |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
401 /* |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
402 * NOTE: A single activation context is created and activated |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
403 * for the entire lifetime of the program. It is deactivated |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
404 * and released by Windows when the program exits. |
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
405 */ |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
406 } |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
407 |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
408 /************************************************************************** |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
409 |
161
d6bf6a720cde
Minor cleanup and organization of Activation Context Code
John Reimer <terminal.node@gmail.com>
parents:
143
diff
changeset
|
410 **************************************************************************/ |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
411 |
3 | 412 /* Flag used on WinCE */ |
188
03f179597782
Make WinXP themes work with windows resources
Frank Benoit <benoit@tionex.de>
parents:
181
diff
changeset
|
413 |
3 | 414 static const int SYS_COLOR_INDEX_FLAG = OS.IsWinCE ? 0x40000000 : 0x0; |
415 | |
416 /* | |
19 | 417 * NOTE: There is a bug in JVM 1.2 where loading |
3 | 418 * a class with a large number of constants causes |
419 * a segment fault to occur sometime later after | |
420 * the class is loaded. The fix is to break the | |
421 * class up into a hierarchy of classes that each | |
422 * contain a smaller number of constants. This | |
423 * fix is not necessary at this time but is required | |
424 * when all constants are uncommented. We have not | |
425 * done the research to determine the limit. | |
426 */ | |
427 | |
428 /* Constants */ | |
429 public static const int ABS_DOWNDISABLED = 8; | |
430 public static const int ABS_DOWNHOT = 6; | |
431 public static const int ABS_DOWNNORMAL = 5; | |
432 public static const int ABS_DOWNPRESSED = 7; | |
433 public static const int ABS_LEFTDISABLED = 12; | |
434 public static const int ABS_LEFTHOT = 10; | |
435 public static const int ABS_LEFTNORMAL = 9; | |
436 public static const int ABS_LEFTPRESSED = 11; | |
437 public static const int ABS_RIGHTDISABLED = 16; | |
438 public static const int ABS_RIGHTHOT = 14; | |
439 public static const int ABS_RIGHTNORMAL = 13; | |
440 public static const int ABS_RIGHTPRESSED = 15; | |
441 public static const int ABS_UPDISABLED = 4; | |
442 public static const int ABS_UPHOT = 2; | |
443 public static const int ABS_UPNORMAL = 1; | |
444 public static const int ABS_UPPRESSED = 3; | |
445 public static const int AC_SRC_OVER = 0; | |
446 public static const int AC_SRC_ALPHA = 1; | |
447 // public static const int ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x00000008; | |
448 // public static const int ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x00000010; | |
449 public static const int ALTERNATE = 1; | |
450 public static const int ASSOCF_NOTRUNCATE = 0x00000020; | |
213 | 451 public static const int ASSOCF_INIT_IGNOREUNKNOWN = 0x400; |
3 | 452 public static const int ASSOCSTR_COMMAND = 1; |
453 public static const int ASSOCSTR_DEFAULTICON = 15; | |
454 public static const int ASSOCSTR_FRIENDLYAPPNAME = 4; | |
455 public static const int ASSOCSTR_FRIENDLYDOCNAME = 3; | |
456 public static const int AW_SLIDE = 0x00040000; | |
457 public static const int AW_ACTIVATE = 0x00020000; | |
458 public static const int AW_BLEND = 0x00080000; | |
459 public static const int AW_HIDE = 0x00010000; | |
460 public static const int AW_CENTER = 0x00000010; | |
461 public static const int AW_HOR_POSITIVE = 0x00000001; | |
462 public static const int AW_HOR_NEGATIVE = 0x00000002; | |
463 public static const int AW_VER_POSITIVE = 0x00000004; | |
464 public static const int AW_VER_NEGATIVE = 0x00000008; | |
213 | 465 public static const int ATTR_INPUT = 0x00; |
466 public static const int ATTR_TARGET_CONVERTED = 0x01; | |
467 public static const int ATTR_CONVERTED = 0x02; | |
468 public static const int ATTR_TARGET_NOTCONVERTED = 0x03; | |
469 public static const int ATTR_INPUT_ERROR = 0x04; | |
470 public static const int ATTR_FIXEDCONVERTED = 0x05; | |
3 | 471 public static const int BCM_FIRST = 0x1600; |
472 public static const int BCM_GETIDEALSIZE = BCM_FIRST + 0x1; | |
473 public static const int BCM_GETIMAGELIST = BCM_FIRST + 0x3; | |
474 public static const int BCM_GETNOTE = BCM_FIRST + 0xa; | |
475 public static const int BCM_GETNOTELENGTH = BCM_FIRST + 0xb; | |
476 public static const int BCM_SETIMAGELIST = BCM_FIRST + 0x2; | |
477 public static const int BCM_SETNOTE = BCM_FIRST + 0x9; | |
478 public static const int BDR_RAISEDOUTER = 0x0001; | |
479 public static const int BDR_SUNKENOUTER = 0x0002; | |
480 public static const int BDR_RAISEDINNER = 0x0004; | |
481 public static const int BDR_SUNKENINNER = 0x0008; | |
482 public static const int BDR_OUTER = 0x0003; | |
483 public static const int BDR_INNER = 0x000c; | |
484 public static const int BDR_RAISED = 0x0005; | |
485 public static const int BDR_SUNKEN = 0x000a; | |
486 public static const int BFFM_INITIALIZED = 0x1; | |
487 public static const int BFFM_SETSELECTION = IsUnicode ? 0x467 : 0x466; | |
488 public static const int BFFM_VALIDATEFAILED = IsUnicode ? 0x4 : 0x3; | |
489 public static const int BFFM_VALIDATEFAILEDW = 0x4; | |
490 public static const int BFFM_VALIDATEFAILEDA = 0x3; | |
19 | 491 public static const int BF_ADJUST = 0x2000; |
3 | 492 public static const int BF_LEFT = 0x0001; |
493 public static const int BF_TOP = 0x0002; | |
494 public static const int BF_RIGHT = 0x0004; | |
495 public static const int BF_BOTTOM = 0x0008; | |
496 public static const int BF_RECT = (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM); | |
497 public static const int BIF_EDITBOX = 0x10; | |
498 public static const int BIF_NEWDIALOGSTYLE = 0x40; | |
499 public static const int BIF_RETURNONLYFSDIRS = 0x1; | |
500 public static const int BIF_VALIDATE = 0x20; | |
501 public static const int BITSPIXEL = 0xc; | |
502 public static const int BI_BITFIELDS = 3; | |
503 public static const int BI_RGB = 0; | |
504 public static const int BLACKNESS = 0x42; | |
505 public static const int BLACK_BRUSH = 4; | |
506 public static const int BUTTON_IMAGELIST_ALIGN_LEFT = 0; | |
507 public static const int BUTTON_IMAGELIST_ALIGN_RIGHT = 1; | |
508 public static const int BUTTON_IMAGELIST_ALIGN_CENTER = 4; | |
509 public static const int BM_CLICK = 0xf5; | |
510 public static const int BM_GETCHECK = 0xf0; | |
511 public static const int BM_SETCHECK = 0xf1; | |
512 public static const int BM_SETIMAGE = 0xf7; | |
513 public static const int BM_SETSTYLE = 0xf4; | |
514 public static const int BN_CLICKED = 0x0; | |
515 public static const int BN_DOUBLECLICKED = 0x5; | |
516 public static const int BPBF_COMPATIBLEBITMAP = 0; | |
517 public static const int BPBF_DIB = 1; | |
518 public static const int BPBF_TOPDOWNDIB = 2; | |
519 public static const int BPBF_TOPDOWNMONODIB = 3; | |
520 public static const int BPPF_ERASE = 0x0001; | |
521 public static const int BPPF_NOCLIP = 0x0002; | |
522 public static const int BPPF_NONCLIENT = 0x0004; | |
523 public static const int BP_PUSHBUTTON = 1; | |
524 public static const int BP_RADIOBUTTON = 2; | |
525 public static const int BP_CHECKBOX = 3; | |
526 public static const int BP_GROUPBOX = 4; | |
527 public static const int BST_CHECKED = 0x1; | |
213 | 528 public static const int BST_INDETERMINATE = 0x2; |
3 | 529 public static const int BST_UNCHECKED = 0x0; |
213 | 530 public static const int BS_3STATE = 0x5; |
3 | 531 public static const int BS_BITMAP = 0x80; |
532 public static const int BS_CENTER = 0x300; | |
533 public static const int BS_CHECKBOX = 0x2; | |
534 public static const int BS_COMMANDLINK = 0xe; | |
535 public static const int BS_DEFPUSHBUTTON = 0x1; | |
536 public static const int BS_FLAT = 0x8000; | |
537 public static const int BS_GROUPBOX = 0x7; | |
538 public static const int BS_ICON = 0x40; | |
539 public static const int BS_LEFT = 0x100; | |
540 public static const int BS_NOTIFY = 0x4000; | |
541 public static const int BS_OWNERDRAW = 0xb; | |
542 public static const int BS_PATTERN = 0x3; | |
543 public static const int BS_PUSHBUTTON = 0x0; | |
544 public static const int BS_PUSHLIKE = 0x1000; | |
545 public static const int BS_RADIOBUTTON = 0x4; | |
546 public static const int BS_RIGHT = 0x200; | |
547 public static const int BS_SOLID = 0x0; | |
548 public static const int BTNS_AUTOSIZE = 0x10; | |
549 public static const int BTNS_BUTTON = 0x0; | |
550 public static const int BTNS_CHECK = 0x2; | |
551 public static const int BTNS_CHECKGROUP = 0x6; | |
552 public static const int BTNS_DROPDOWN = 0x8; | |
553 public static const int BTNS_GROUP = 0x4; | |
554 public static const int BTNS_SEP = 0x1; | |
555 public static const int BTNS_SHOWTEXT = 0x40; | |
556 public static const int CBN_EDITCHANGE = 0x5; | |
557 public static const int CBN_KILLFOCUS = 0x4; | |
558 public static const int CBN_SELCHANGE = 0x1; | |
559 public static const int CBN_SETFOCUS = 0x3; | |
560 public static const int CBS_AUTOHSCROLL = 0x40; | |
561 public static const int CBS_DROPDOWN = 0x2; | |
562 public static const int CBS_DROPDOWNLIST = 0x3; | |
563 public static const int CBS_CHECKEDNORMAL = 5; | |
564 public static const int CBS_MIXEDNORMAL = 9; | |
565 public static const int CBS_NOINTEGRALHEIGHT = 0x400; | |
566 public static const int CBS_SIMPLE = 0x1; | |
567 public static const int CBS_UNCHECKEDNORMAL = 1; | |
568 public static const int CBS_CHECKEDDISABLED = 8; | |
569 public static const int CBS_CHECKEDHOT = 6; | |
570 public static const int CBS_CHECKEDPRESSED = 7; | |
571 public static const int CBS_MIXEDDISABLED = 0; | |
572 public static const int CBS_MIXEDHOT = 0; | |
573 public static const int CBS_MIXEDPRESSED = 0; | |
574 public static const int CBS_UNCHECKEDDISABLED = 4; | |
575 public static const int CBS_UNCHECKEDHOT = 2; | |
576 public static const int CBS_UNCHECKEDPRESSED = 3; | |
577 public static const int CB_ADDSTRING = 0x143; | |
578 public static const int CB_DELETESTRING = 0x144; | |
579 public static const int CB_ERR = 0xffffffff; | |
580 public static const int CB_ERRSPACE = 0xfffffffe; | |
581 public static const int CB_FINDSTRINGEXACT = 0x158; | |
582 public static const int CB_GETCOUNT = 0x146; | |
583 public static const int CB_GETCURSEL = 0x147; | |
584 public static const int CB_GETDROPPEDCONTROLRECT = 0x152; | |
585 public static const int CB_GETDROPPEDSTATE = 0x157; | |
586 public static const int CB_GETDROPPEDWIDTH = 0x015f; | |
587 public static const int CB_GETEDITSEL = 0x140; | |
588 public static const int CB_GETHORIZONTALEXTENT = 0x015d; | |
589 public static const int CB_GETITEMHEIGHT = 0x154; | |
590 public static const int CB_GETLBTEXT = 0x148; | |
591 public static const int CB_GETLBTEXTLEN = 0x149; | |
592 public static const int CB_INSERTSTRING = 0x14a; | |
593 public static const int CB_LIMITTEXT = 0x141; | |
594 public static const int CB_RESETCONTENT = 0x14b; | |
595 public static const int CB_SELECTSTRING = 0x14d; | |
596 public static const int CB_SETCURSEL = 0x14e; | |
597 public static const int CB_SETDROPPEDWIDTH= 0x0160; | |
598 public static const int CB_SETEDITSEL = 0x142; | |
599 public static const int CB_SETHORIZONTALEXTENT = 0x015e; | |
600 public static const int CB_SETITEMHEIGHT = 0x0153; | |
601 public static const int CB_SHOWDROPDOWN = 0x14f; | |
602 public static const int CBXS_NORMAL = 1; | |
603 public static const int CBXS_HOT = 2; | |
604 public static const int CBXS_PRESSED = 3; | |
605 public static const int CBXS_DISABLED = 4; | |
213 | 606 public static const int CCHILDREN_SCROLLBAR = 5; |
3 | 607 public static const int CCM_FIRST = 0x2000; |
608 public static const int CCM_SETBKCOLOR = 0x2001; | |
609 public static const int CCM_SETVERSION = 0x2007; | |
610 public static const int CCS_NODIVIDER = 0x40; | |
611 public static const int CCS_NORESIZE = 0x4; | |
612 public static const int CCS_VERT = 0x80; | |
613 public static const int CC_ANYCOLOR = 0x100; | |
614 public static const int CC_ENABLEHOOK = 0x10; | |
615 public static const int CC_FULLOPEN = 0x2; | |
616 public static const int CC_RGBINIT = 0x1; | |
617 public static const int CDDS_POSTERASE = 0x00000004; | |
618 public static const int CDDS_POSTPAINT = 0x00000002; | |
619 public static const int CDDS_PREERASE = 0x00000003; | |
620 public static const int CDDS_PREPAINT = 0x00000001; | |
621 public static const int CDDS_ITEM = 0x00010000; | |
622 public static const int CDDS_ITEMPOSTPAINT = CDDS_ITEM | CDDS_POSTPAINT; | |
623 public static const int CDDS_ITEMPREPAINT = CDDS_ITEM | CDDS_PREPAINT; | |
624 public static const int CDDS_SUBITEM = 0x00020000; | |
625 public static const int CDDS_SUBITEMPOSTPAINT = CDDS_ITEMPOSTPAINT | CDDS_SUBITEM; | |
626 public static const int CDDS_SUBITEMPREPAINT = CDDS_ITEMPREPAINT | CDDS_SUBITEM; | |
627 public static const int CDIS_SELECTED = 0x0001; | |
628 public static const int CDIS_GRAYED = 0x0002; | |
629 public static const int CDIS_DISABLED = 0x0004; | |
630 public static const int CDIS_CHECKED = 0x0008; | |
631 public static const int CDIS_FOCUS = 0x0010; | |
632 public static const int CDIS_DEFAULT = 0x0020; | |
633 public static const int CDIS_HOT = 0x0040; | |
634 public static const int CDIS_MARKED = 0x0080; | |
635 public static const int CDIS_INDETERMINATE = 0x0100; | |
636 public static const int CDM_FIRST = 0x0400 + 100; | |
637 public static const int CDM_GETSPEC = CDM_FIRST; | |
638 public static const int CDN_FIRST = -601; | |
639 public static const int CDN_SELCHANGE = CDN_FIRST - 1; | |
640 public static const int CDRF_DODEFAULT = 0x00000000; | |
641 public static const int CDRF_DOERASE = 0x00000008; | |
642 public static const int CDRF_NEWFONT = 0x00000002; | |
643 public static const int CDRF_NOTIFYITEMDRAW = 0x00000020; | |
644 public static const int CDRF_NOTIFYPOSTERASE = 0x00000040; | |
645 public static const int CDRF_NOTIFYPOSTPAINT = 0x00000010; | |
646 public static const int CDRF_NOTIFYSUBITEMDRAW = 0x00000020; | |
647 public static const int CDRF_SKIPDEFAULT = 0x04; | |
648 public static const int CDRF_SKIPPOSTPAINT = 0x00000100; | |
649 public static const int CFE_AUTOCOLOR = 0x40000000; | |
650 public static const int CFE_ITALIC = 0x2; | |
651 public static const int CFE_STRIKEOUT = 0x8; | |
652 public static const int CFE_UNDERLINE = 0x4; | |
653 public static const int CFM_BOLD = 0x1; | |
654 public static const int CFM_CHARSET = 0x8000000; | |
655 public static const int CFM_COLOR = 0x40000000; | |
656 public static const int CFM_FACE = 0x20000000; | |
657 public static const int CFM_ITALIC = 0x2; | |
658 public static const int CFM_SIZE = 0x80000000; | |
659 public static const int CFM_STRIKEOUT = 0x8; | |
660 public static const int CFM_UNDERLINE = 0x4; | |
661 public static const int CFM_WEIGHT = 0x400000; | |
662 public static const int CFS_POINT = 0x2; | |
663 public static const int CFS_RECT = 0x1; | |
213 | 664 public static const int CFS_CANDIDATEPOS = 0x0040; |
665 public static const int CFS_EXCLUDE = 0x0080; | |
3 | 666 public static const int CF_EFFECTS = 0x100; |
667 public static const int CF_INITTOLOGFONTSTRUCT = 0x40; | |
668 public static const int CF_SCREENFONTS = 0x1; | |
669 public static const int CF_TEXT = 0x1; | |
670 public static const int CF_UNICODETEXT = 13; | |
671 public static const int CF_USESTYLE = 0x80; | |
672 public static const int CLR_DEFAULT = 0xff000000; | |
673 public static const int CLR_INVALID = 0xffffffff; | |
674 public static const int CLR_NONE = 0xffffffff; | |
675 public static const int CLSCTX_INPROC_SERVER = 1; | |
676 public static const int COLORONCOLOR = 0x3; | |
677 public static const int COLOR_3DDKSHADOW = 0x15 | SYS_COLOR_INDEX_FLAG; | |
678 public static const int COLOR_3DFACE = 0xf | SYS_COLOR_INDEX_FLAG; | |
679 public static const int COLOR_3DHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
680 public static const int COLOR_3DHILIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
681 public static const int COLOR_3DLIGHT = 0x16 | SYS_COLOR_INDEX_FLAG; | |
682 public static const int COLOR_3DSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG; | |
683 public static const int COLOR_ACTIVECAPTION = 0x2 | SYS_COLOR_INDEX_FLAG; | |
684 public static const int COLOR_BTNFACE = 0xf | SYS_COLOR_INDEX_FLAG; | |
685 public static const int COLOR_BTNHIGHLIGHT = 0x14 | SYS_COLOR_INDEX_FLAG; | |
686 public static const int COLOR_BTNSHADOW = 0x10 | SYS_COLOR_INDEX_FLAG; | |
687 public static const int COLOR_BTNTEXT = 0x12 | SYS_COLOR_INDEX_FLAG; | |
688 public static const int COLOR_CAPTIONTEXT = 0x9 | SYS_COLOR_INDEX_FLAG; | |
689 public static const int COLOR_GRADIENTACTIVECAPTION = 0x1b | SYS_COLOR_INDEX_FLAG; | |
690 public static const int COLOR_GRADIENTINACTIVECAPTION = 0x1c | SYS_COLOR_INDEX_FLAG; | |
691 public static const int COLOR_GRAYTEXT = 0x11 | SYS_COLOR_INDEX_FLAG; | |
692 public static const int COLOR_HIGHLIGHT = 0xd | SYS_COLOR_INDEX_FLAG; | |
693 public static const int COLOR_HIGHLIGHTTEXT = 0xe | SYS_COLOR_INDEX_FLAG; | |
694 public static const int COLOR_HOTLIGHT = 26 | SYS_COLOR_INDEX_FLAG; | |
695 public static const int COLOR_INACTIVECAPTION = 0x3 | SYS_COLOR_INDEX_FLAG; | |
696 public static const int COLOR_INACTIVECAPTIONTEXT = 0x13 | SYS_COLOR_INDEX_FLAG; | |
697 public static const int COLOR_INFOBK = 0x18 | SYS_COLOR_INDEX_FLAG; | |
698 public static const int COLOR_INFOTEXT = 0x17 | SYS_COLOR_INDEX_FLAG; | |
699 public static const int COLOR_MENU = 0x4 | SYS_COLOR_INDEX_FLAG; | |
700 public static const int COLOR_MENUTEXT = 0x7 | SYS_COLOR_INDEX_FLAG; | |
701 public static const int COLOR_SCROLLBAR = 0x0 | SYS_COLOR_INDEX_FLAG; | |
702 public static const int COLOR_WINDOW = 0x5 | SYS_COLOR_INDEX_FLAG; | |
703 public static const int COLOR_WINDOWFRAME = 0x6 | SYS_COLOR_INDEX_FLAG; | |
704 public static const int COLOR_WINDOWTEXT = 0x8 | SYS_COLOR_INDEX_FLAG; | |
705 public static const int COMPLEXREGION = 0x3; | |
706 public static const int CP_ACP = 0x0; | |
707 public static const int CP_UTF8 = 65001; | |
708 public static const int CP_DROPDOWNBUTTON = 1; | |
709 public static const int CP_INSTALLED = 0x1; | |
213 | 710 public static const int CPS_COMPLETE = 0x1; |
3 | 711 public static const int CS_BYTEALIGNWINDOW = 0x2000; |
712 public static const int CS_DBLCLKS = 0x8; | |
713 public static const int CS_DROPSHADOW = 0x20000; | |
714 public static const int CS_GLOBALCLASS = 0x4000; | |
715 public static const int CS_HREDRAW = 0x2; | |
716 public static const int CS_VREDRAW = 0x1; | |
717 public static const int CW_USEDEFAULT = 0x80000000; | |
165 | 718 public static const TCHAR[] DATETIMEPICK_CLASS = "SysDateTimePick32"; //$NON-NLS-1$ |
3 | 719 public static const int DATE_LONGDATE = 0x00000002; |
720 public static const int DATE_SHORTDATE = 0x00000001; | |
721 public static const int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500) | |
722 public static const int DCX_CACHE = 0x2; | |
723 public static const int DCX_CLIPCHILDREN = 0x8; | |
724 public static const int DCX_CLIPSIBLINGS = 0x10; | |
213 | 725 public static const int DCX_INTERSECTRGN = 0x80; |
726 public static const int DCX_WINDOW = 0x1; | |
3 | 727 public static const int DEFAULT_CHARSET = 0x1; |
728 public static const int DEFAULT_GUI_FONT = 0x11; | |
729 public static const int DFCS_BUTTONCHECK = 0x0; | |
730 public static const int DFCS_CHECKED = 0x400; | |
731 public static const int DFCS_FLAT = 0x4000; | |
732 public static const int DFCS_INACTIVE = 0x100; | |
733 public static const int DFCS_PUSHED = 0x200; | |
734 public static const int DFCS_SCROLLDOWN = 0x1; | |
735 public static const int DFCS_SCROLLLEFT = 0x2; | |
736 public static const int DFCS_SCROLLRIGHT = 0x3; | |
737 public static const int DFCS_SCROLLUP = 0x0; | |
738 public static const int DFC_BUTTON = 0x4; | |
739 public static const int DFC_SCROLL = 0x3; | |
740 public static const int DIB_RGB_COLORS = 0x0; | |
741 public static const int DISP_E_EXCEPTION = 0x80020009; | |
742 public static const int DI_NORMAL = 0x3; | |
743 public static const int DI_NOMIRROR = 0x10; | |
744 public static const int DLGC_BUTTON = 0x2000; | |
745 public static const int DLGC_HASSETSEL = 0x8; | |
746 public static const int DLGC_STATIC = 0x100; | |
747 public static const int DLGC_WANTALLKEYS = 0x4; | |
748 public static const int DLGC_WANTARROWS = 0x1; | |
749 public static const int DLGC_WANTCHARS = 0x80; | |
750 public static const int DLGC_WANTTAB = 0x2; | |
751 public static const int DM_SETDEFID = 0x401; | |
752 public static const int DSS_DISABLED = 0x20; | |
753 public static const int DSTINVERT = 0x550009; | |
754 public static const int DST_BITMAP = 0x4; | |
755 public static const int DST_ICON = 0x3; | |
756 public static const int DT_BOTTOM = 0x8; | |
757 public static const int DT_CALCRECT = 0x400; | |
758 public static const int DT_CENTER = 0x1; | |
759 public static const int DT_EDITCONTROL = 0x2000; | |
760 public static const int DT_EXPANDTABS = 0x40; | |
761 public static const int DT_ENDELLIPSIS = 32768; | |
762 public static const int DT_HIDEPREFIX = 0x100000; | |
763 public static const int DT_LEFT = 0x0; | |
764 public static const int DT_NOPREFIX = 0x800; | |
765 public static const int DT_RASPRINTER = 0x2; | |
766 public static const int DT_RIGHT = 0x2; | |
767 public static const int DT_SINGLELINE = 0x20; | |
768 public static const int DT_TOP = 0; | |
769 public static const int DT_VCENTER = 4; | |
770 public static const int DT_WORDBREAK = 0x10; | |
771 public static const int DTM_FIRST = 0x1000; | |
19 | 772 public static const int DTM_GETSYSTEMTIME = DTM_FIRST + 1; |
3 | 773 public static const int DTM_SETFORMAT = IsUnicode ? DTM_FIRST + 50 : DTM_FIRST + 5; |
774 public static const int DTM_SETSYSTEMTIME = DTM_FIRST + 2; | |
775 public static const int DTN_FIRST = 0xFFFFFD08; | |
776 public static const int DTN_DATETIMECHANGE = DTN_FIRST + 1; | |
213 | 777 public static const int DTN_CLOSEUP = DTN_FIRST + 7; |
778 public static const int DTN_DROPDOWN = DTN_FIRST + 6; | |
3 | 779 public static const int DTS_LONGDATEFORMAT = 0x0004; |
780 public static const int DTS_SHORTDATECENTURYFORMAT = 0x000C; | |
781 public static const int DTS_SHORTDATEFORMAT = 0x0000; | |
782 public static const int DTS_TIMEFORMAT = 0x0009; | |
783 public static const int DTS_UPDOWN = 0x0001; | |
213 | 784 public static const int DWM_BB_ENABLE = 0x1; |
785 public static const int DWM_BB_BLURREGION = 0x2; | |
786 public static const int DWM_BB_TRANSITIONONMAXIMIZED = 0x4; | |
3 | 787 public static const int E_POINTER = 0x80004003; |
788 public static const int EBP_NORMALGROUPBACKGROUND = 5; | |
789 public static const int EBP_NORMALGROUPCOLLAPSE = 6; | |
790 public static const int EBP_NORMALGROUPEXPAND = 7; | |
791 public static const int EBP_NORMALGROUPHEAD = 8; | |
792 public static const int EBNGC_NORMAL = 1; | |
793 public static const int EBNGC_HOT = 2; | |
794 public static const int EBNGC_PRESSED = 3; | |
795 public static const int EBP_HEADERBACKGROUND = 1; | |
796 public static const int EC_LEFTMARGIN = 0x1; | |
797 public static const int EC_RIGHTMARGIN = 0x2; | |
798 public static const int ECOOP_AND = 0x3; | |
799 public static const int ECOOP_OR = 0x2; | |
800 public static const int ECO_AUTOHSCROLL = 0x80; | |
801 public static const int EDGE_RAISED = (BDR_RAISEDOUTER | BDR_RAISEDINNER); | |
802 public static const int EDGE_SUNKEN = (BDR_SUNKENOUTER | BDR_SUNKENINNER); | |
803 public static const int EDGE_ETCHED = (BDR_SUNKENOUTER | BDR_RAISEDINNER); | |
804 public static const int EDGE_BUMP = (BDR_RAISEDOUTER | BDR_SUNKENINNER); | |
805 public static const int EM_CANUNDO = 0xc6; | |
806 public static const int EM_CHARFROMPOS = 0xd7; | |
807 public static const int EM_DISPLAYBAND = 0x433; | |
808 public static const int EM_GETFIRSTVISIBLELINE = 0xce; | |
809 public static const int EM_GETLIMITTEXT = 0xd5; | |
810 public static const int EM_GETLINE = 0xc4; | |
811 public static const int EM_GETLINECOUNT = 0xba; | |
812 public static const int EM_GETMARGINS = 0xd4; | |
813 public static const int EM_GETPASSWORDCHAR = 0xd2; | |
814 public static const int EM_GETSCROLLPOS = 0x4dd; | |
815 public static const int EM_GETSEL = 0xb0; | |
816 public static const int EM_LIMITTEXT = 0xc5; | |
817 public static const int EM_LINEFROMCHAR = 0xc9; | |
818 public static const int EM_LINEINDEX = 0xbb; | |
819 public static const int EM_LINELENGTH = 0xc1; | |
820 public static const int EM_LINESCROLL = 0xb6; | |
821 public static const int EM_POSFROMCHAR = 0xd6; | |
822 public static const int EM_REPLACESEL = 0xc2; | |
823 public static const int EM_SCROLLCARET = 0xb7; | |
824 public static const int EM_SETBKGNDCOLOR = 0x443; | |
825 public static const int EM_SETLIMITTEXT = 0xc5; | |
826 public static const int EM_SETMARGINS = 211; | |
827 public static const int EM_SETOPTIONS = 0x44d; | |
828 public static const int EM_SETPARAFORMAT = 0x447; | |
829 public static const int EM_SETPASSWORDCHAR = 0xcc; | |
830 public static const int EM_SETCUEBANNER = 0x1500 + 1; | |
831 public static const int EM_SETREADONLY = 0xcf; | |
832 public static const int EM_SETSEL = 0xb1; | |
833 public static const int EM_SETTABSTOPS = 0xcb; | |
834 public static const int EM_UNDO = 199; | |
835 public static const int EN_ALIGN_LTR_EC = 0x0700; | |
836 public static const int EN_ALIGN_RTL_EC = 0x0701; | |
837 public static const int EN_CHANGE = 0x300; | |
838 public static const int EP_EDITTEXT = 1; | |
839 public static const int ERROR_NO_MORE_ITEMS = 0x103; | |
840 public static const int ESB_DISABLE_BOTH = 0x3; | |
841 public static const int ESB_ENABLE_BOTH = 0x0; | |
842 public static const int ES_AUTOHSCROLL = 0x80; | |
843 public static const int ES_AUTOVSCROLL = 0x40; | |
844 public static const int ES_CENTER = 0x1; | |
845 public static const int ES_MULTILINE = 0x4; | |
846 public static const int ES_NOHIDESEL = 0x100; | |
847 public static const int ES_PASSWORD = 0x20; | |
848 public static const int ES_READONLY = 0x800; | |
849 public static const int ES_RIGHT = 0x2; | |
850 public static const int ETO_CLIPPED = 0x4; | |
851 public static const int ETS_NORMAL = 1; | |
852 public static const int ETS_HOT = 2; | |
853 public static const int ETS_SELECTED = 3; | |
854 public static const int ETS_DISABLED = 4; | |
855 public static const int ETS_FOCUSED = 5; | |
856 public static const int ETS_READONLY = 6; | |
857 public static const int EVENT_OBJECT_FOCUS = 0x8005; | |
858 public static const int EVENT_OBJECT_LOCATIONCHANGE = 0x800B; | |
859 // public static const int EVENT_OBJECT_SELECTION = 0x8006; | |
860 public static const int EVENT_OBJECT_SELECTIONWITHIN = 0x8009; | |
861 public static const int EVENT_OBJECT_VALUECHANGE = 0x800E; | |
862 public static const int FALT = 0x10; | |
863 public static const int FCONTROL = 0x8; | |
864 public static const int FE_FONTSMOOTHINGCLEARTYPE = 0x0002; | |
865 public static const int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21; | |
19 | 866 public static const int FILE_ATTRIBUTE_NORMAL = 0x00000080; |
3 | 867 public static const int FNERR_INVALIDFILENAME = 0x3002; |
868 public static const int FNERR_BUFFERTOOSMALL = 0x3003; | |
869 public static const int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100; | |
870 public static const int FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000; | |
871 public static const int FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200; | |
872 public static const int FR_PRIVATE = 0x10; | |
873 public static const int FSHIFT = 0x4; | |
874 public static const int FVIRTKEY = 0x1; | |
875 public static const int GBS_NORMAL = 1; | |
876 public static const int GBS_DISABLED = 2; | |
877 public static const int GCS_COMPSTR = 0x8; | |
878 public static const int GCS_RESULTSTR = 0x800; | |
213 | 879 public static const int GCS_COMPATTR = 0x0010; |
880 public static const int GCS_COMPCLAUSE = 0x0020; | |
881 public static const int GCS_CURSORPOS = 0x0080; | |
3 | 882 public static const int GDT_VALID = 0; |
883 public static const int GET_FEATURE_FROM_PROCESS = 0x2; | |
884 public static const int GLPS_CLOSED = 1; | |
885 public static const int GLPS_OPENED = 2; | |
886 public static const int GM_ADVANCED = 2; | |
887 public static const int GMDI_USEDISABLED = 0x1; | |
888 public static const int GMEM_FIXED = 0x0; | |
889 public static const int GMEM_ZEROINIT = 0x40; | |
890 public static const int GN_CONTEXTMENU = 1000; | |
891 public static const int GPTR = 0x40; | |
892 public static const int GRADIENT_FILL_RECT_H = 0x0; | |
893 public static const int GRADIENT_FILL_RECT_V = 0x1; | |
894 public static const int GTL_NUMBYTES = 0x10; | |
895 public static const int GTL_NUMCHARS = 0x8; | |
896 public static const int GTL_PRECISE = 0x2; | |
897 public static const int GT_DEFAULT = 0x0; | |
898 public static const int GUI_16BITTASK = 0x20; | |
899 public static const int GUI_CARETBLINKING = 0x1; | |
900 public static const int GUI_INMENUMODE = 0x4; | |
901 public static const int GUI_INMOVESIZE = 0x2; | |
902 public static const int GUI_POPUPMENUMODE = 0x10; | |
903 public static const int GUI_SYSTEMMENUMODE = 0x8; | |
904 public static const int GWL_EXSTYLE = 0xffffffec; | |
905 public static const int GWL_ID = -12; | |
906 public static const int GWL_HWNDPARENT = -8; | |
907 public static const int GWL_STYLE = 0xfffffff0; | |
908 public static const int GWL_USERDATA = 0xffffffeb; | |
909 public static const int GWL_WNDPROC = 0xfffffffc; | |
910 public static const int GWLP_ID = -12; | |
911 public static const int GWLP_HWNDPARENT = -8; | |
912 public static const int GWLP_USERDATA = 0xffffffeb; | |
913 public static const int GWLP_WNDPROC = 0xfffffffc; | |
914 public static const int GW_CHILD = 0x5; | |
915 public static const int GW_HWNDFIRST = 0x0; | |
916 public static const int GW_HWNDLAST = 0x1; | |
917 public static const int GW_HWNDNEXT = 0x2; | |
918 public static const int GW_HWNDPREV = 0x3; | |
919 public static const int GW_OWNER = 0x4; | |
56 | 920 public static const HBITMAP HBMMENU_CALLBACK = cast(HBITMAP) 0xffffffff; |
3 | 921 public static const int HCBT_CREATEWND = 3; |
922 public static const int HCF_HIGHCONTRASTON = 0x1; | |
923 public static const int HDF_BITMAP = 0x2000; | |
924 public static const int HDF_BITMAP_ON_RIGHT = 0x1000; | |
925 public static const int HDF_CENTER = 2; | |
926 public static const int HDF_JUSTIFYMASK = 0x3; | |
927 public static const int HDF_IMAGE = 0x0800; | |
928 public static const int HDF_LEFT = 0; | |
929 public static const int HDF_RIGHT = 1; | |
930 public static const int HDF_SORTUP = 0x0400; | |
931 public static const int HDF_SORTDOWN = 0x0200; | |
932 public static const int HDI_BITMAP = 0x0010; | |
933 public static const int HDI_IMAGE = 32; | |
934 public static const int HDI_ORDER = 0x80; | |
935 public static const int HDI_TEXT = 0x2; | |
936 public static const int HDI_WIDTH = 0x1; | |
937 public static const int HDI_FORMAT = 0x4; | |
938 public static const int HDM_FIRST = 0x1200; | |
939 public static const int HDM_DELETEITEM = HDM_FIRST + 2; | |
940 public static const int HDM_GETBITMAPMARGIN = HDM_FIRST + 21; | |
941 public static const int HDM_GETITEMCOUNT = 0x1200; | |
942 public static const int HDM_GETITEMA = HDM_FIRST + 3; | |
943 public static const int HDM_GETITEMW = HDM_FIRST + 11; | |
944 public static const int HDM_GETITEM = IsUnicode ? HDM_GETITEMW : HDM_GETITEMA; | |
945 public static const int HDM_GETITEMRECT = HDM_FIRST + 7; | |
946 public static const int HDM_GETORDERARRAY = HDM_FIRST + 17; | |
947 public static const int HDM_HITTEST = HDM_FIRST + 6; | |
948 public static const int HDM_INSERTITEMA = HDM_FIRST + 1; | |
949 public static const int HDM_INSERTITEMW = HDM_FIRST + 10; | |
950 public static const int HDM_INSERTITEM = IsUnicode ? HDM_INSERTITEMW : HDM_INSERTITEMA; | |
951 public static const int HDM_LAYOUT = HDM_FIRST + 5; | |
952 public static const int HDM_ORDERTOINDEX = HDM_FIRST + 15; | |
953 public static const int HDM_SETIMAGELIST = HDM_FIRST + 8; | |
954 public static const int HDM_SETITEMA = HDM_FIRST + 4; | |
955 public static const int HDM_SETITEMW = HDM_FIRST + 12; | |
956 public static const int HDM_SETITEM = IsUnicode ? HDM_SETITEMW : HDM_SETITEMA; | |
957 public static const int HDM_SETORDERARRAY = HDM_FIRST + 18; | |
958 public static const int HDN_FIRST = 0xfffffed4; | |
959 public static const int HDN_BEGINDRAG = HDN_FIRST - 10; | |
960 public static const int HDN_BEGINTRACK = IsUnicode ? 0xfffffeba : 0xfffffece; | |
961 public static const int HDN_BEGINTRACKW = 0xfffffeba; | |
962 public static const int HDN_BEGINTRACKA = 0xfffffece; | |
963 public static const int HDN_DIVIDERDBLCLICKA = HDN_FIRST - 5; | |
964 public static const int HDN_DIVIDERDBLCLICKW = HDN_FIRST - 25; | |
965 public static const int HDN_DIVIDERDBLCLICK = IsUnicode ? HDN_DIVIDERDBLCLICKW : HDN_DIVIDERDBLCLICKA; | |
966 public static const int HDN_ENDDRAG = HDN_FIRST - 11; | |
967 public static const int HDN_ITEMCHANGED = IsUnicode ? 0xfffffebf : 0xfffffed3; | |
968 public static const int HDN_ITEMCHANGEDW = 0xfffffebf; | |
969 public static const int HDN_ITEMCHANGEDA = 0xfffffed3; | |
970 public static const int HDN_ITEMCHANGINGW = HDN_FIRST - 20; | |
971 public static const int HDN_ITEMCHANGINGA = HDN_FIRST; | |
972 public static const int HDN_ITEMCLICKW = HDN_FIRST - 22; | |
973 public static const int HDN_ITEMCLICKA = HDN_FIRST - 2; | |
974 public static const int HDN_ITEMDBLCLICKW = HDN_FIRST - 23; | |
975 public static const int HDN_ITEMDBLCLICKA = HDN_FIRST - 3; | |
976 public static const int HDN_ITEMDBLCLICK = IsUnicode ? HDN_ITEMDBLCLICKW : HDN_ITEMDBLCLICKA; | |
977 public static const int HDS_BUTTONS = 0x2; | |
978 public static const int HDS_DRAGDROP = 0x0040; | |
979 public static const int HDS_FULLDRAG = 0x80; | |
980 public static const int HDS_HIDDEN = 0x8; | |
981 // public static const int HEAP_ZERO_MEMORY = 0x8; | |
982 public static const int HELPINFO_MENUITEM = 0x2; | |
983 public static const int HHT_ONDIVIDER = 0x4; | |
984 public static const int HHT_ONDIVOPEN = 0x8; | |
985 public static const int HICF_ARROWKEYS = 0x2; | |
986 public static const int HINST_COMMCTRL = 0xffffffff; | |
987 public static const int HKEY_CLASSES_ROOT = 0x80000000; | |
988 public static const int HKEY_CURRENT_USER = 0x80000001; | |
989 public static const int HKEY_LOCAL_MACHINE = 0x80000002; | |
990 public static const int HORZRES = 0x8; | |
991 public static const int HTBORDER = 0x12; | |
992 public static const int HTCAPTION = 0x2; | |
993 public static const int HTCLIENT = 0x1; | |
994 public static const int HTERROR = -2; | |
995 public static const int HTHSCROLL = 0x6; | |
996 public static const int HTMENU = 0x5; | |
997 public static const int HTNOWHERE = 0x0; | |
998 public static const int HTSYSMENU = 0x3; | |
999 public static const int HTTRANSPARENT = 0xffffffff; | |
1000 public static const int HTVSCROLL = 0x7; | |
1001 public static const int HWND_BOTTOM = 0x1; | |
1002 public static const int HWND_TOP = 0x0; | |
1003 public static const int HWND_TOPMOST = 0xffffffff; | |
1004 public static const int HWND_NOTOPMOST = -2; | |
1005 public static const int ICC_COOL_CLASSES = 0x400; | |
1006 public static const int ICC_DATE_CLASSES = 0x100; | |
1007 public static const int ICM_NOTOPEN = 0x0; | |
1008 public static const int ICON_BIG = 0x1; | |
1009 public static const int ICON_SMALL = 0x0; | |
1010 public static const int I_IMAGECALLBACK = -1; | |
1011 public static const int I_IMAGENONE = -2; | |
1012 public static const int IDABORT = 0x3; | |
1013 public static const int IDANI_CAPTION = 3; | |
1014 public static const int IDB_STD_SMALL_COLOR = 0x0; | |
1015 public static const int IDC_APPSTARTING = 0x7f8a; | |
1016 public static const int IDC_ARROW = 0x7f00; | |
1017 public static const int IDC_CROSS = 0x7f03; | |
47 | 1018 public static const TCHAR* IDC_HAND = cast(TCHAR*) 0x7f89; |
3 | 1019 public static const int IDC_HELP = 0x7f8b; |
1020 public static const int IDC_IBEAM = 0x7f01; | |
1021 public static const int IDC_NO = 0x7f88; | |
1022 public static const int IDC_SIZE = 0x7f80; | |
1023 public static const int IDC_SIZEALL = 0x7f86; | |
1024 public static const int IDC_SIZENESW = 0x7f83; | |
1025 public static const int IDC_SIZENS = 0x7f85; | |
1026 public static const int IDC_SIZENWSE = 0x7f82; | |
1027 public static const int IDC_SIZEWE = 0x7f84; | |
1028 public static const int IDC_UPARROW = 0x7f04; | |
1029 public static const int IDC_WAIT = 0x7f02; | |
1030 public static const int IDI_APPLICATION = 32512; | |
1031 public static const int IDNO = 0x7; | |
1032 public static const int IDOK = 0x1; | |
1033 public static const int IDRETRY = 0x4; | |
1034 public static const int IDYES = 0x6; | |
1035 public static const int ILC_COLOR = 0x0; | |
1036 public static const int ILC_COLOR16 = 0x10; | |
1037 public static const int ILC_COLOR24 = 0x18; | |
1038 public static const int ILC_COLOR32 = 0x20; | |
1039 public static const int ILC_COLOR4 = 0x4; | |
1040 public static const int ILC_COLOR8 = 0x8; | |
1041 public static const int ILC_MASK = 0x1; | |
1042 public static const int ILC_MIRROR = 0x2000; | |
1043 public static const int ILD_NORMAL = 0x0; | |
1044 public static const int ILD_SELECTED = 0x4; | |
1045 public static const int IMAGE_BITMAP = 0x0; | |
1046 public static const int IMAGE_CURSOR = 0x2; | |
1047 public static const int IMAGE_ICON = 0x1; | |
1048 public static const int IME_CMODE_FULLSHAPE = 0x8; | |
1049 public static const int IME_CMODE_KATAKANA = 0x2; | |
1050 public static const int IME_CMODE_NATIVE = 0x1; | |
1051 public static const int IME_CMODE_ROMAN = 0x10; | |
213 | 1052 public static const int IMEMOUSE_LDOWN = 1; |
3 | 1053 public static const int INFINITE = 0xffffffff; |
1054 public static const int INPUT_KEYBOARD = 1; | |
1055 public static const int INPUT_MOUSE = 0; | |
1056 public static const int INTERNET_OPTION_END_BROWSER_SESSION = 42; | |
1057 public static const int KEY_ENUMERATE_SUB_KEYS = 0x8; | |
1058 public static const int KEY_NOTIFY = 0x10; | |
1059 public static const int KEY_QUERY_VALUE = 0x1; | |
1060 public static const int KEY_READ = 0x20019; | |
1061 public static const int KEYEVENTF_KEYUP = 0x0002; | |
1062 public static const int L_MAX_URL_LENGTH = 2084; | |
1063 // public static const int LANG_KOREAN = 0x12; | |
1064 public static const int LANG_NEUTRAL = 0x0; | |
1065 public static const int LANG_USER_DEFAULT = 1 << 10; | |
1066 public static const int LAYOUT_RTL = 0x1; | |
194 | 1067 public static const int LAYOUT_BITMAPORIENTATIONPRESERVED = 0x8; |
3 | 1068 public static const int LBN_DBLCLK = 0x2; |
1069 public static const int LBN_SELCHANGE = 0x1; | |
1070 public static const int LBS_EXTENDEDSEL = 0x800; | |
1071 public static const int LBS_MULTIPLESEL = 0x8; | |
1072 public static const int LBS_NOINTEGRALHEIGHT = 0x100; | |
1073 public static const int LBS_NOTIFY = 0x1; | |
1074 public static const int LB_ADDSTRING = 0x180; | |
1075 public static const int LB_DELETESTRING = 0x182; | |
1076 public static const int LB_ERR = 0xffffffff; | |
1077 public static const int LB_ERRSPACE = 0xfffffffe; | |
1078 public static const int LB_FINDSTRINGEXACT = 0x1a2; | |
1079 public static const int LB_GETCARETINDEX = 0x19f; | |
1080 public static const int LB_GETCOUNT = 0x18b; | |
1081 public static const int LB_GETCURSEL = 0x188; | |
1082 public static const int LB_GETHORIZONTALEXTENT = 0x193; | |
1083 public static const int LB_GETITEMHEIGHT = 0x1a1; | |
1084 public static const int LB_GETITEMRECT = 0x198; | |
1085 public static const int LB_GETSEL = 0x187; | |
1086 public static const int LB_GETSELCOUNT = 0x190; | |
1087 public static const int LB_GETSELITEMS = 0x191; | |
1088 public static const int LB_GETTEXT = 0x189; | |
1089 public static const int LB_GETTEXTLEN = 0x18a; | |
1090 public static const int LB_GETTOPINDEX = 0x18e; | |
1091 public static const int LB_INITSTORAGE = 0x1a8; | |
1092 public static const int LB_INSERTSTRING = 0x181; | |
1093 public static const int LB_RESETCONTENT = 0x184; | |
1094 public static const int LB_SELITEMRANGE = 0x19b; | |
1095 public static const int LB_SELITEMRANGEEX = 0x183; | |
213 | 1096 public static const int LB_SETANCHORINDEX = 0xf19c; |
3 | 1097 public static const int LB_SETCARETINDEX = 0x19e; |
1098 public static const int LB_SETCURSEL = 0x186; | |
1099 public static const int LB_SETHORIZONTALEXTENT = 0x194; | |
1100 public static const int LB_SETSEL = 0x185; | |
1101 public static const int LB_SETTOPINDEX = 0x197; | |
1102 public static const int LF_FACESIZE = 32; | |
1103 public static const int LGRPID_ARABIC = 0xd; | |
1104 public static const int LGRPID_HEBREW = 0xc; | |
1105 public static const int LGRPID_INSTALLED = 1; | |
1106 public static const int LIF_ITEMINDEX = 0x1; | |
1107 public static const int LIF_STATE = 0x2; | |
1108 public static const int LIS_FOCUSED = 0x1; | |
1109 public static const int LIS_ENABLED = 0x2; | |
1110 public static const int LISS_HOT = 0x2; | |
1111 public static const int LISS_SELECTED = 0x3; | |
1112 public static const int LISS_SELECTEDNOTFOCUS = 0x5; | |
1113 public static const int LM_GETIDEALHEIGHT = 0x701; | |
1114 public static const int LM_SETITEM = 0x702; | |
1115 public static const int LM_GETITEM = 0x703; | |
1116 public static const int LCID_SUPPORTED = 0x2; | |
1117 public static const int LOCALE_IDEFAULTANSICODEPAGE = 0x1004; | |
1118 public static const int LOCALE_IDATE = 0x00000021; | |
1119 public static const int LOCALE_ITIME = 0x00000023; | |
1120 public static const int LOCALE_RETURN_NUMBER = 0x20000000; // #if(WINVER >= 0x0400) | |
19 | 1121 public static const int LOCALE_S1159 = 0x00000028; |
1122 public static const int LOCALE_S2359 = 0x00000029; | |
1123 public static const int LOCALE_SDECIMAL = 14; | |
3 | 1124 public static const int LOCALE_SISO3166CTRYNAME = 0x5a; |
1125 public static const int LOCALE_SISO639LANGNAME = 0x59; | |
1126 public static const int LOCALE_SLONGDATE = 0x00000020; | |
1127 public static const int LOCALE_SSHORTDATE = 0x0000001F; | |
1128 public static const int LOCALE_STIMEFORMAT = 0x00001003; | |
1129 public static const int LOCALE_SYEARMONTH = 0x00001006; // #if(WINVER >= 0x0500) | |
1130 public static const int LOCALE_SDAYNAME1 = 0x0000002A; // long name for Monday | |
1131 public static const int LOCALE_SDAYNAME2 = 0x0000002B; // long name for Tuesday | |
1132 public static const int LOCALE_SDAYNAME3 = 0x0000002C; // long name for Wednesday | |
1133 public static const int LOCALE_SDAYNAME4 = 0x0000002D; // long name for Thursday | |
1134 public static const int LOCALE_SDAYNAME5 = 0x0000002E; // long name for Friday | |
1135 public static const int LOCALE_SDAYNAME6 = 0x0000002F; // long name for Saturday | |
1136 public static const int LOCALE_SDAYNAME7 = 0x00000030; // long name for Sunday | |
1137 public static const int LOCALE_SMONTHNAME1 = 0x00000038; // long name for January | |
1138 public static const int LOCALE_SMONTHNAME2 = 0x00000039; // long name for February | |
1139 public static const int LOCALE_SMONTHNAME3 = 0x0000003A; // long name for March | |
1140 public static const int LOCALE_SMONTHNAME4 = 0x0000003B; // long name for April | |
1141 public static const int LOCALE_SMONTHNAME5 = 0x0000003C; // long name for May | |
1142 public static const int LOCALE_SMONTHNAME6 = 0x0000003D; // long name for June | |
1143 public static const int LOCALE_SMONTHNAME7 = 0x0000003E; // long name for July | |
1144 public static const int LOCALE_SMONTHNAME8 = 0x0000003F; // long name for August | |
1145 public static const int LOCALE_SMONTHNAME9 = 0x00000040; // long name for September | |
1146 public static const int LOCALE_SMONTHNAME10 = 0x00000041; // long name for October | |
1147 public static const int LOCALE_SMONTHNAME11 = 0x00000042; // long name for November | |
1148 public static const int LOCALE_SMONTHNAME12 = 0x00000043; // long name for December | |
1149 public static const int LOCALE_USER_DEFAULT = 1024; | |
1150 public static const int LOGPIXELSX = 0x58; | |
1151 public static const int LOGPIXELSY = 0x5a; | |
40 | 1152 public static const TCHAR* LPSTR_TEXTCALLBACK = cast(TCHAR*)0xffffffff; |
3 | 1153 public static const int LR_DEFAULTCOLOR = 0x0; |
1154 public static const int LR_SHARED = 0x8000; | |
1155 public static const int LVCFMT_BITMAP_ON_RIGHT = 0x1000; | |
1156 public static const int LVCFMT_CENTER = 0x2; | |
1157 public static const int LVCFMT_IMAGE = 0x800; | |
1158 public static const int LVCFMT_LEFT = 0x0; | |
1159 public static const int LVCFMT_RIGHT = 0x1; | |
1160 public static const int LVCF_FMT = 0x1; | |
1161 public static const int LVCF_IMAGE = 0x10; | |
1162 public static const int LVCFMT_JUSTIFYMASK = 0x3; | |
1163 public static const int LVCF_TEXT = 0x4; | |
1164 public static const int LVCF_WIDTH = 0x2; | |
1165 public static const int LVHT_ONITEM = 0xe; | |
1166 public static const int LVHT_ONITEMICON = 0x2; | |
1167 public static const int LVHT_ONITEMLABEL = 0x4; | |
1168 public static const int LVHT_ONITEMSTATEICON = 0x8; | |
1169 public static const int LVIF_IMAGE = 0x2; | |
1170 public static const int LVIF_INDENT = 0x10; | |
1171 public static const int LVIF_STATE = 0x8; | |
1172 public static const int LVIF_TEXT = 0x1; | |
1173 public static const int LVIR_BOUNDS = 0x0; | |
1174 public static const int LVIR_ICON = 0x1; | |
1175 public static const int LVIR_LABEL = 0x2; | |
1176 public static const int LVIR_SELECTBOUNDS = 0x3; | |
1177 public static const int LVIS_DROPHILITED = 0x8; | |
1178 public static const int LVIS_FOCUSED = 0x1; | |
1179 public static const int LVIS_SELECTED = 0x2; | |
1180 public static const int LVIS_STATEIMAGEMASK = 0xf000; | |
1181 public static const int LVM_FIRST = 0x1000; | |
1182 public static const int LVM_APPROXIMATEVIEWRECT = 0x1040; | |
1183 public static const int LVM_CREATEDRAGIMAGE = LVM_FIRST + 33; | |
1184 public static const int LVM_DELETEALLITEMS = 0x1009; | |
1185 public static const int LVM_DELETECOLUMN = 0x101c; | |
1186 public static const int LVM_DELETEITEM = 0x1008; | |
1187 public static const int LVM_ENSUREVISIBLE = 0x1013; | |
1188 public static const int LVM_GETBKCOLOR = 0x1000; | |
1189 public static const int LVM_GETCOLUMN = IsUnicode ? 0x105f : 0x1019; | |
1190 public static const int LVM_GETCOLUMNORDERARRAY = LVM_FIRST + 59; | |
1191 public static const int LVM_GETCOLUMNWIDTH = 0x101d; | |
1192 public static const int LVM_GETCOUNTPERPAGE = 0x1028; | |
1193 public static const int LVM_GETEXTENDEDLISTVIEWSTYLE = 0x1037; | |
1194 public static const int LVM_GETHEADER = 0x101f; | |
1195 public static const int LVM_GETIMAGELIST = 0x1002; | |
1196 public static const int LVM_GETITEM = IsUnicode ? 0x104b : 0x1005; | |
1197 public static const int LVM_GETITEMW = 0x104b; | |
1198 public static const int LVM_GETITEMA = 0x1005; | |
1199 public static const int LVM_GETITEMCOUNT = 0x1004; | |
1200 public static const int LVM_GETITEMRECT = 0x100e; | |
1201 public static const int LVM_GETITEMSTATE = 0x102c; | |
1202 public static const int LVM_GETNEXTITEM = 0x100c; | |
1203 public static const int LVM_GETSELECTEDCOLUMN = LVM_FIRST + 174; | |
1204 public static const int LVM_GETSELECTEDCOUNT = 0x1032; | |
1205 public static const int LVM_GETSTRINGWIDTH = IsUnicode ? 0x1057 : 0x1011; | |
1206 public static const int LVM_GETSUBITEMRECT = 0x1038; | |
1207 public static const int LVM_GETTEXTCOLOR = 0x1023; | |
1208 public static const int LVM_GETTOOLTIPS = 0x104e; | |
1209 public static const int LVM_GETTOPINDEX = 0x1027; | |
1210 public static const int LVM_HITTEST = 0x1012; | |
1211 public static const int LVM_INSERTCOLUMN = IsUnicode ? 0x1061 : 0x101b; | |
1212 public static const int LVM_INSERTITEM = IsUnicode ? 0x104d : 0x1007; | |
1213 public static const int LVM_REDRAWITEMS = LVM_FIRST + 21; | |
1214 public static const int LVM_SCROLL = 0x1014; | |
1215 public static const int LVM_SETBKCOLOR = 0x1001; | |
1216 public static const int LVM_SETCALLBACKMASK = LVM_FIRST + 11; | |
1217 public static const int LVM_SETCOLUMN = IsUnicode ? 0x1060 : 0x101a; | |
1218 public static const int LVM_SETCOLUMNORDERARRAY = LVM_FIRST + 58; | |
1219 public static const int LVM_SETCOLUMNWIDTH = 0x101e; | |
1220 public static const int LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1036; | |
1221 public static const int LVM_SETIMAGELIST = 0x1003; | |
1222 public static const int LVM_SETITEM = IsUnicode ? 0x104c : 0x1006; | |
1223 public static const int LVM_SETITEMCOUNT = LVM_FIRST + 47; | |
1224 public static const int LVM_SETITEMSTATE = 0x102b; | |
1225 public static const int LVM_SETSELECTIONMARK = LVM_FIRST + 67; | |
1226 public static const int LVM_SETSELECTEDCOLUMN = LVM_FIRST + 140; | |
1227 public static const int LVM_SETTEXTBKCOLOR = 0x1026; | |
1228 public static const int LVM_SETTEXTCOLOR = 0x1024; | |
213 | 1229 public static const int LVM_SETTOOLTIPS = LVM_FIRST + 74; |
1230 public static const int LVM_SUBITEMHITTEST = LVM_FIRST + 57; | |
3 | 1231 public static const int LVNI_FOCUSED = 0x1; |
1232 public static const int LVNI_SELECTED = 0x2; | |
1233 public static const int LVN_BEGINDRAG = 0xffffff93; | |
1234 public static const int LVN_BEGINRDRAG = 0xffffff91; | |
1235 public static const int LVN_COLUMNCLICK = 0xffffff94; | |
1236 public static const int LVN_FIRST = 0xffffff9c; | |
1237 public static const int LVN_GETDISPINFOA = LVN_FIRST - 50; | |
1238 public static const int LVN_GETDISPINFOW = LVN_FIRST - 77; | |
1239 public static const int LVN_ITEMACTIVATE = 0xffffff8e; | |
1240 public static const int LVN_ITEMCHANGED = 0xffffff9b; | |
1241 public static const int LVN_MARQUEEBEGIN = 0xffffff64; | |
1242 public static const int LVN_ODFINDITEMA = LVN_FIRST - 52; | |
1243 public static const int LVN_ODFINDITEMW = LVN_FIRST - 79; | |
1244 public static const int LVN_ODSTATECHANGED = LVN_FIRST - 15; | |
1245 public static const int LVP_LISTITEM = 1; | |
1246 public static const int LVSCW_AUTOSIZE = 0xffffffff; | |
1247 public static const int LVSCW_AUTOSIZE_USEHEADER = 0xfffffffe; | |
1248 public static const int LVSICF_NOINVALIDATEALL = 0x1; | |
1249 public static const int LVSICF_NOSCROLL = 0x2; | |
1250 public static const int LVSIL_SMALL = 0x1; | |
1251 public static const int LVSIL_STATE = 0x2; | |
1252 public static const int LVS_EX_DOUBLEBUFFER = 0x10000; | |
1253 public static const int LVS_EX_FULLROWSELECT = 0x20; | |
1254 public static const int LVS_EX_GRIDLINES = 0x1; | |
1255 public static const int LVS_EX_HEADERDRAGDROP = 0x10; | |
1256 public static const int LVS_EX_LABELTIP = 0x4000; | |
1257 public static const int LVS_EX_ONECLICKACTIVATE = 0x40; | |
1258 public static const int LVS_EX_SUBITEMIMAGES = 0x2; | |
1259 public static const int LVS_EX_TRACKSELECT = 0x8; | |
1260 public static const int LVS_EX_TRANSPARENTBKGND = 0x800000; | |
1261 public static const int LVS_EX_TWOCLICKACTIVATE = 0x80; | |
1262 public static const int LVS_LIST = 0x3; | |
1263 public static const int LVS_NOCOLUMNHEADER = 0x4000; | |
1264 public static const int LVS_NOSCROLL = 0x2000; | |
1265 public static const int LVS_OWNERDATA = 0x1000; | |
1266 public static const int LVS_OWNERDRAWFIXED = 0x400; | |
1267 public static const int LVS_REPORT = 0x1; | |
1268 public static const int LVS_SHAREIMAGELISTS = 0x40; | |
1269 public static const int LVS_SHOWSELALWAYS = 0x8; | |
1270 public static const int LVS_SINGLESEL = 0x4; | |
1271 public static const int LWA_COLORKEY = 0x00000001; | |
1272 public static const int LWA_ALPHA = 0x00000002; | |
1273 public static const int MAX_LINKID_TEXT = 48; | |
1274 // public static const int MAX_PATH = 260; | |
1275 public static const int MA_NOACTIVATE = 0x3; | |
1276 // public static const int MANIFEST_RESOURCE_ID = 2; | |
1277 public static const int MB_ABORTRETRYIGNORE = 0x2; | |
1278 public static const int MB_APPLMODAL = 0x0; | |
1279 public static const int MB_ICONERROR = 0x10; | |
1280 public static const int MB_ICONINFORMATION = 0x40; | |
1281 public static const int MB_ICONQUESTION = 0x20; | |
1282 public static const int MB_ICONWARNING = 0x30; | |
1283 public static const int MB_OK = 0x0; | |
1284 public static const int MB_OKCANCEL = 0x1; | |
1285 public static const int MB_PRECOMPOSED = 0x1; | |
1286 public static const int MB_RETRYCANCEL = 0x5; | |
1287 public static const int MB_RTLREADING = 0x100000; | |
1288 public static const int MB_SYSTEMMODAL = 0x1000; | |
1289 public static const int MB_TASKMODAL = 0x2000; | |
1290 public static const int MB_TOPMOST = 0x00040000; | |
1291 public static const int MB_YESNO = 0x4; | |
1292 public static const int MB_YESNOCANCEL = 0x3; | |
1293 public static const int MCM_FIRST = 0x1000; | |
1294 public static const int MCM_GETCURSEL = MCM_FIRST + 1; | |
1295 public static const int MCM_SETCURSEL = MCM_FIRST + 2; | |
1296 public static const int MCN_FIRST = 0xFFFFFD12; | |
19 | 1297 public static const int MCN_SELCHANGE = MCN_FIRST + 1; |
213 | 1298 public static const int MCN_SELECT = MCN_FIRST + 4; |
3 | 1299 public static const int MCM_GETMINREQRECT = MCM_FIRST + 9; |
1300 public static const int MCS_NOTODAY = 0x0010; | |
1301 public static const int MDIS_ALLCHILDSTYLES = 0x0001; | |
1302 public static const int MFS_CHECKED = 0x8; | |
1303 public static const int MFS_DISABLED = 0x3; | |
1304 public static const int MFS_GRAYED = 0x3; | |
1305 public static const int MFT_RADIOCHECK = 0x200; | |
1306 public static const int MFT_RIGHTJUSTIFY = 0x4000; | |
19 | 1307 public static const int MFT_RIGHTORDER = 0x2000; |
3 | 1308 public static const int MFT_SEPARATOR = 0x800; |
1309 public static const int MFT_STRING = 0x0; | |
1310 public static const int MF_BYCOMMAND = 0x0; | |
1311 public static const int MF_BYPOSITION = 0x400; | |
1312 public static const int MF_CHECKED = 0x8; | |
1313 public static const int MF_DISABLED = 0x2; | |
1314 public static const int MF_ENABLED = 0x0; | |
1315 public static const int MF_GRAYED = 0x1; | |
1316 public static const int MF_HILITE = 0x80; | |
1317 public static const int MF_POPUP = 0x10; | |
1318 public static const int MF_SEPARATOR = 0x800; | |
1319 public static const int MF_SYSMENU = 0x2000; | |
1320 public static const int MF_UNCHECKED = 0x0; | |
1321 public static const int MIIM_BITMAP = 0x80; | |
1322 public static const int MIIM_DATA = 0x20; | |
1323 public static const int MIIM_ID = 0x2; | |
1324 public static const int MIIM_STATE = 0x1; | |
213 | 1325 public static const int MIIM_STRING = 0x40; |
3 | 1326 public static const int MIIM_SUBMENU = 0x4; |
1327 public static const int MIIM_TYPE = 0x10; | |
1328 public static const int MIM_BACKGROUND = 0x2; | |
1329 public static const int MIM_STYLE = 0x10; | |
1330 public static const int MK_ALT = 0x20; | |
1331 public static const int MK_CONTROL = 0x8; | |
1332 public static const int MK_LBUTTON = 0x1; | |
1333 public static const int MK_MBUTTON = 0x10; | |
1334 public static const int MK_RBUTTON = 0x2; | |
1335 public static const int MK_SHIFT = 0x4; | |
1336 public static const int MK_XBUTTON1 = 0x20; | |
1337 public static const int MK_XBUTTON2 = 0x40; | |
1338 public static const int MM_TEXT = 0x1; | |
1339 public static const int MNC_CLOSE = 0x1; | |
1340 public static const int MNS_CHECKORBMP = 0x4000000; | |
1341 public static const int MONITOR_DEFAULTTONEAREST = 0x2; | |
1342 public static const int MONITORINFOF_PRIMARY = 0x1; | |
165 | 1343 public static const TCHAR[] MONTHCAL_CLASS = "SysMonthCal32"; //$NON-NLS-1$ |
3 | 1344 public static const int MOUSEEVENTF_ABSOLUTE = 0x8000; |
19 | 1345 public static const int MOUSEEVENTF_LEFTDOWN = 0x0002; |
1346 public static const int MOUSEEVENTF_LEFTUP = 0x0004; | |
1347 public static const int MOUSEEVENTF_MIDDLEDOWN = 0x0020; | |
1348 public static const int MOUSEEVENTF_MIDDLEUP = 0x0040; | |
3 | 1349 public static const int MOUSEEVENTF_MOVE = 0x0001; |
19 | 1350 public static const int MOUSEEVENTF_RIGHTDOWN = 0x0008; |
3 | 1351 public static const int MOUSEEVENTF_RIGHTUP = 0x0010; |
1352 public static const int MOUSEEVENTF_VIRTUALDESK = 0x4000; | |
1353 public static const int MOUSEEVENTF_WHEEL = 0x0800; | |
1354 public static const int MOUSEEVENTF_XDOWN = 0x0080; | |
1355 public static const int MOUSEEVENTF_XUP = 0x0100; | |
1356 public static const int MSGF_DIALOGBOX = 0; | |
1357 public static const int MSGF_COMMCTRL_BEGINDRAG = 0x4200; | |
1358 public static const int MSGF_COMMCTRL_SIZEHEADER = 0x4201; | |
1359 public static const int MSGF_COMMCTRL_DRAGSELECT = 0x4202; | |
1360 public static const int MSGF_COMMCTRL_TOOLBARCUST = 0x4203; | |
1361 public static const int MSGF_MAINLOOP = 8; | |
1362 public static const int MSGF_MENU = 2; | |
1363 public static const int MSGF_MOVE = 3; | |
1364 public static const int MSGF_MESSAGEBOX = 1; | |
1365 public static const int MSGF_NEXTWINDOW = 6; | |
1366 public static const int MSGF_SCROLLBAR = 5; | |
1367 public static const int MSGF_SIZE = 4; | |
1368 public static const int MSGF_USER = 4096; | |
1369 public static const int MWMO_INPUTAVAILABLE = 0x4; | |
213 | 1370 public static const int NI_COMPOSITIONSTR = 0x15; |
3 | 1371 public static const int NIF_ICON = 0x00000002; |
1372 public static const int NIF_INFO = 0x00000010; | |
1373 public static const int NIF_MESSAGE = 0x00000001; | |
1374 public static const int NIF_STATE = 0x00000008; | |
1375 public static const int NIF_TIP = 0x00000004; | |
1376 public static const int NIIF_ERROR = 0x00000003; | |
1377 public static const int NIIF_INFO = 0x00000001; | |
1378 public static const int NIIF_NONE = 0x00000000; | |
1379 public static const int NIIF_WARNING = 0x00000002; | |
1380 public static const int NIM_ADD = 0x00000000; | |
1381 public static const int NIM_DELETE = 0x00000002; | |
1382 public static const int NIM_MODIFY = 0x00000001; | |
1383 public static const int NIN_SELECT = 0x400 + 0; | |
1384 public static const int NINF_KEY = 0x1; | |
1385 public static const int NIN_KEYSELECT = NIN_SELECT | NINF_KEY; | |
1386 public static const int NIN_BALLOONSHOW = 0x400 + 2; | |
1387 public static const int NIN_BALLOONHIDE = 0x400 + 3; | |
1388 public static const int NIN_BALLOONTIMEOUT = 0x400 + 4; | |
1389 public static const int NIN_BALLOONUSERCLICK = 0x400 + 5; | |
1390 public static const int NIS_HIDDEN = 0x00000001; | |
1391 public static const int NM_FIRST = 0x0; | |
1392 public static const int NM_CLICK = 0xfffffffe; | |
1393 public static const int NM_CUSTOMDRAW = NM_FIRST - 12; | |
1394 public static const int NM_DBLCLK = 0xfffffffd; | |
1395 public static const int NM_RECOGNIZEGESTURE = NM_FIRST - 16; | |
1396 public static const int NM_RELEASEDCAPTURE = NM_FIRST - 16; | |
1397 public static const int NM_RETURN = 0xfffffffc; | |
15 | 1398 public static int NOTIFYICONDATAA_V2_SIZE; |
1399 public static int NOTIFYICONDATAW_V2_SIZE; | |
1400 public static int NOTIFYICONDATA_V2_SIZE; | |
3 | 1401 public static const int NOTSRCCOPY = 0x330008; |
1402 public static const int NULLREGION = 0x1; | |
1403 public static const int NULL_BRUSH = 0x5; | |
1404 public static const int NULL_PEN = 0x8; | |
1405 public static const int NUMRESERVED = 106; | |
1406 public static const int OBJID_CARET = 0xFFFFFFF8; | |
1407 public static const int OBJID_CLIENT = 0xFFFFFFFC; | |
1408 public static const int OBJID_MENU = 0xFFFFFFFD; | |
1409 public static const int OBJID_WINDOW = 0x00000000; | |
1410 public static const int OBJ_BITMAP = 0x7; | |
1411 public static const int OBJ_FONT = 0x6; | |
1412 public static const int OBJ_PEN = 0x1; | |
213 | 1413 public static const int OBJID_HSCROLL = 0xFFFFFFFA; |
1414 public static const int OBJID_VSCROLL = 0xFFFFFFFB; | |
41 | 1415 public static const TCHAR* OBM_CHECKBOXES = cast(TCHAR*)0x7ff7; |
3 | 1416 public static const int ODS_SELECTED = 0x1; |
1417 public static const int ODT_MENU = 0x1; | |
1418 public static const int OFN_ALLOWMULTISELECT = 0x200; | |
1419 public static const int OFN_EXPLORER = 0x80000; | |
1420 public static const int OFN_ENABLEHOOK = 0x20; | |
1421 public static const int OFN_HIDEREADONLY = 0x4; | |
1422 public static const int OFN_NOCHANGEDIR = 0x8; | |
213 | 1423 public static const int OFN_OVERWRITEPROMPT = 0x2; |
3 | 1424 public static const int OIC_BANG = 0x7F03; |
1425 public static const int OIC_HAND = 0x7F01; | |
1426 public static const int OIC_INFORMATION = 0x7F04; | |
1427 public static const int OIC_QUES = 0x7F02; | |
1428 public static const int OIC_WINLOGO = 0x7F05; | |
1429 public static const int OPAQUE = 0x2; | |
1430 public static const int PATCOPY = 0xf00021; | |
1431 public static const int PATINVERT = 0x5a0049; | |
1432 public static const int PBM_GETPOS = 0x408; | |
1433 public static const int PBM_GETRANGE = 0x407; | |
1434 public static const int PBM_GETSTATE = 0x400 + 17; | |
1435 public static const int PBM_SETBARCOLOR = 0x409; | |
1436 public static const int PBM_SETBKCOLOR = 0x2001; | |
1437 public static const int PBM_SETMARQUEE = 0x400 + 10; | |
1438 public static const int PBM_SETPOS = 0x402; | |
1439 public static const int PBM_SETRANGE32 = 0x406; | |
1440 public static const int PBM_SETSTATE = 0x400 + 16; | |
1441 public static const int PBM_STEPIT = 0x405; | |
1442 public static const int PBS_MARQUEE = 0x08; | |
1443 public static const int PBS_SMOOTH = 0x1; | |
1444 public static const int PBS_VERTICAL = 0x4; | |
1445 public static const int PBS_NORMAL = 1; | |
1446 public static const int PBS_HOT = 2; | |
19 | 1447 public static const int PBS_PRESSED = 3; |
3 | 1448 public static const int PBS_DISABLED = 4; |
1449 public static const int PBS_DEFAULTED = 5; | |
1450 public static const int PBST_NORMAL = 0x0001; | |
1451 public static const int PBST_ERROR = 0x0002; | |
1452 public static const int PBST_PAUSED = 0x0003; | |
1453 public static const int PD_ALLPAGES = 0x0; | |
1454 public static const int PD_COLLATE = 0x10; | |
1455 public static const int PD_PAGENUMS = 0x2; | |
1456 public static const int PD_PRINTTOFILE = 0x20; | |
1457 public static const int PD_RETURNDC = 0x100; | |
1458 public static const int PD_SELECTION = 0x1; | |
1459 public static const int PD_USEDEVMODECOPIESANDCOLLATE = 0x40000; | |
1460 public static const int PT_CLOSEFIGURE = 1; | |
1461 public static const int PT_LINETO = 2; | |
1462 public static const int PT_BEZIERTO = 4; | |
1463 public static const int PT_MOVETO = 6; | |
1464 public static const int PFM_TABSTOPS = 0x10; | |
1465 public static const int PHYSICALHEIGHT = 0x6f; | |
1466 public static const int PHYSICALOFFSETX = 0x70; | |
1467 public static const int PHYSICALOFFSETY = 0x71; | |
1468 public static const int PHYSICALWIDTH = 0x6e; | |
1469 public static const int PLANES = 0xe; | |
1470 public static const int PM_NOREMOVE = 0x0; | |
1471 public static const int PM_NOYIELD = 0x2; | |
1472 public static const int QS_HOTKEY = 0x0080; | |
1473 public static const int QS_KEY = 0x0001; | |
1474 public static const int QS_MOUSEMOVE = 0x0002; | |
1475 public static const int QS_MOUSEBUTTON = 0x0004; | |
1476 public static const int QS_MOUSE = QS_MOUSEMOVE | QS_MOUSEBUTTON; | |
1477 public static const int QS_INPUT = QS_KEY | QS_MOUSE; | |
1478 public static const int QS_POSTMESSAGE = 0x0008; | |
1479 public static const int QS_TIMER = 0x0010; | |
1480 public static const int QS_PAINT = 0x0020; | |
1481 public static const int QS_SENDMESSAGE = 0x0040; | |
1482 public static const int QS_ALLINPUT = QS_MOUSEMOVE | QS_MOUSEBUTTON | QS_KEY | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_SENDMESSAGE; | |
1483 public static const int PM_QS_INPUT = QS_INPUT << 16; | |
1484 public static const int PM_QS_POSTMESSAGE = (QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16; | |
1485 public static const int PM_QS_PAINT = QS_PAINT << 16; | |
1486 public static const int PM_QS_SENDMESSAGE = QS_SENDMESSAGE << 16; | |
1487 public static const int PM_REMOVE = 0x1; | |
61 | 1488 public static const TCHAR[] PROGRESS_CLASS = "msctls_progress32"; //$NON-NLS-1$ |
3 | 1489 public static const int PP_BAR = 1; |
1490 public static const int PP_BARVERT = 2; | |
1491 public static const int PP_CHUNK = 3; | |
1492 public static const int PP_CHUNKVERT = 4; | |
1493 public static const int PRF_CHILDREN = 16; | |
1494 public static const int PRF_CLIENT = 0x4; | |
1495 public static const int PRF_ERASEBKGND = 0x8; | |
1496 public static const int PRF_NONCLIENT = 0x2; | |
1497 public static const int PROGRESSCHUNKSIZE = 2411; | |
1498 public static const int PROGRESSSPACESIZE = 2412; | |
1499 public static const int PS_DASH = 0x1; | |
1500 public static const int PS_DASHDOT = 0x3; | |
1501 public static const int PS_DASHDOTDOT = 0x4; | |
1502 public static const int PS_DOT = 0x2; | |
1503 public static const int PS_ENDCAP_FLAT = 0x200; | |
1504 public static const int PS_ENDCAP_SQUARE = 0x100; | |
1505 public static const int PS_ENDCAP_ROUND = 0x000; | |
1506 public static const int PS_ENDCAP_MASK = 0xF00; | |
1507 public static const int PS_GEOMETRIC = 0x10000; | |
1508 public static const int PS_JOIN_BEVEL = 0x1000; | |
1509 public static const int PS_JOIN_MASK = 0xF000; | |
1510 public static const int PS_JOIN_MITER = 0x2000; | |
1511 public static const int PS_JOIN_ROUND = 0x0000; | |
1512 public static const int PS_SOLID = 0x0; | |
1513 public static const int PS_STYLE_MASK = 0xf; | |
1514 public static const int PS_TYPE_MASK = 0x000f0000; | |
1515 public static const int PS_USERSTYLE = 0x7; | |
1516 public static const int R2_COPYPEN = 0xd; | |
1517 public static const int R2_XORPEN = 0x7; | |
1518 public static const int RASTERCAPS = 0x26; | |
1519 public static const int RASTER_FONTTYPE = 0x1; | |
1520 public static const int RBBIM_CHILD = 0x10; | |
1521 public static const int RBBIM_CHILDSIZE = 0x20; | |
1522 public static const int RBBIM_COLORS = 0x2; | |
1523 public static const int RBBIM_HEADERSIZE = 0x800; | |
1524 public static const int RBBIM_ID = 0x100; | |
1525 public static const int RBBIM_IDEALSIZE = 0x200; | |
1526 public static const int RBBIM_SIZE = 0x40; | |
1527 public static const int RBBIM_STYLE = 0x1; | |
1528 public static const int RBBIM_TEXT = 0x4; | |
1529 public static const int RBBS_BREAK = 0x1; | |
1530 public static const int RBBS_GRIPPERALWAYS = 0x80; | |
1531 public static const int RBBS_NOGRIPPER = 0x00000100; | |
1532 public static const int RBBS_USECHEVRON = 0x00000200; | |
1533 public static const int RBBS_VARIABLEHEIGHT = 0x40; | |
1534 public static const int RBN_FIRST = 0xfffffcc1; | |
1535 public static const int RBN_BEGINDRAG = RBN_FIRST - 4; | |
1536 public static const int RBN_CHILDSIZE = RBN_FIRST - 8; | |
1537 public static const int RBN_CHEVRONPUSHED = RBN_FIRST - 10; | |
1538 public static const int RBN_HEIGHTCHANGE = 0xfffffcc1; | |
1539 public static const int RBS_DBLCLKTOGGLE = 0x8000; | |
1540 public static const int RBS_BANDBORDERS = 0x400; | |
1541 public static const int RBS_VARHEIGHT = 0x200; | |
1542 public static const int RB_DELETEBAND = 0x402; | |
1543 public static const int RB_GETBANDBORDERS = 0x422; | |
1544 public static const int RB_GETBANDCOUNT = 0x40c; | |
1545 public static const int RB_GETBANDINFO = IsUnicode ? 0x41c : 0x41d; | |
1546 public static const int RB_GETBANDMARGINS = 0x428; | |
1547 public static const int RB_GETBARHEIGHT = 0x41b; | |
1548 public static const int RB_GETBKCOLOR = 0x414; | |
1549 public static const int RB_GETRECT = 0x409; | |
1550 public static const int RB_GETTEXTCOLOR = 0x416; | |
1551 public static const int RB_IDTOINDEX = 0x410; | |
1552 public static const int RB_INSERTBAND = IsUnicode ? 0x40a : 0x401; | |
1553 public static const int RB_MOVEBAND = 0x427; | |
1554 public static const int RB_SETBANDINFO = IsUnicode ? 0x40b : 0x406; | |
1555 public static const int RB_SETBKCOLOR = 0x413; | |
1556 public static const int RB_SETTEXTCOLOR = 0x415; | |
1557 public static const int RC_BITBLT = 0x1; | |
1558 public static const int RC_PALETTE = 0x100; | |
1559 public static const int RDW_ALLCHILDREN = 0x80; | |
1560 public static const int RDW_ERASE = 0x4; | |
1561 public static const int RDW_FRAME = 0x400; | |
1562 public static const int RDW_INVALIDATE = 0x1; | |
1563 public static const int RDW_UPDATENOW = 0x100; | |
1564 public static const int READ_CONTROL = 0x20000; | |
45 | 1565 public static const TCHAR[] REBARCLASSNAME = "ReBarWindow32"; //$NON-NLS-1$ |
3 | 1566 public static const int RGN_AND = 0x1; |
1567 public static const int RGN_COPY = 5; | |
1568 public static const int RGN_DIFF = 0x4; | |
1569 public static const int RGN_ERROR = 0; | |
1570 public static const int RGN_OR = 0x2; | |
1571 public static const int RP_BAND = 3; | |
1572 public static const int SBP_ARROWBTN = 0x1; | |
1573 public static const int SBP_THUMBBTNHORZ = 2; | |
1574 public static const int SBP_THUMBBTNVERT = 3; | |
1575 public static const int SBP_LOWERTRACKHORZ = 4; | |
1576 public static const int SBP_UPPERTRACKHORZ = 5; | |
1577 public static const int SBP_LOWERTRACKVERT = 6; | |
1578 public static const int SBP_UPPERTRACKVERT = 7; | |
1579 public static const int SBP_GRIPPERHORZ = 8; | |
1580 public static const int SBP_GRIPPERVERT = 9; | |
1581 public static const int SBP_SIZEBOX = 10; | |
1582 public static const int SBS_HORZ = 0x0; | |
1583 public static const int SBS_VERT = 0x1; | |
1584 public static const int SB_BOTH = 0x3; | |
1585 public static const int SB_BOTTOM = 0x7; | |
1586 public static const int SB_CTL = 0x2; | |
1587 public static const int SB_ENDSCROLL = 0x8; | |
1588 public static const int SB_HORZ = 0x0; | |
1589 public static const int SB_LINEDOWN = 0x1; | |
1590 public static const int SB_LINEUP = 0x0; | |
1591 public static const int SB_PAGEDOWN = 0x3; | |
1592 public static const int SB_PAGEUP = 0x2; | |
1593 public static const int SB_THUMBPOSITION = 0x4; | |
1594 public static const int SB_THUMBTRACK = 0x5; | |
1595 public static const int SB_TOP = 0x6; | |
1596 public static const int SB_VERT = 0x1; | |
1597 public static const int SCF_ALL = 0x4; | |
1598 public static const int SCF_DEFAULT = 0x0; | |
1599 public static const int SCF_SELECTION = 0x1; | |
1600 public static const int SC_CLOSE = 0xf060; | |
1601 public static const int SC_HSCROLL = 0xf080; | |
1602 public static const int SC_KEYMENU = 0xf100; | |
1603 public static const int SC_MAXIMIZE = 0xf030; | |
1604 public static const int SC_MINIMIZE = 0xf020; | |
1605 public static const int SC_NEXTWINDOW = 0xF040; | |
1606 public static const int SC_RESTORE = 0xf120; | |
1607 public static const int SC_SIZE = 0xf000; | |
1608 public static const int SC_TASKLIST = 0xf130; | |
1609 public static const int SC_VSCROLL = 0xf070; | |
1610 public static const int SCRBS_NORMAL = 1; | |
1611 public static const int SCRBS_HOT = 2; | |
1612 public static const int SCRBS_PRESSED = 3; | |
1613 public static const int SCRBS_DISABLED = 4; | |
1614 public static const int SEM_FAILCRITICALERRORS = 0x1; | |
1615 public static const int SET_FEATURE_ON_PROCESS = 0x2; | |
1616 public static const int SF_RTF = 0x2; | |
1617 public static const int SHCMBF_HIDDEN = 0x2; | |
1618 public static const int SHCMBM_OVERRIDEKEY = 0x400 + 403; | |
1619 public static const int SHCMBM_SETSUBMENU = 0x590; | |
1620 public static const int SHCMBM_GETSUBMENU = 0x591; | |
1621 public static const int SHGFI_ICON = 0x000000100; | |
1622 public static const int SHGFI_SMALLICON= 0x1; | |
1623 public static const int SHGFI_USEFILEATTRIBUTES = 0x000000010; | |
1624 public static const int SHMBOF_NODEFAULT = 0x1; | |
1625 public static const int SHMBOF_NOTIFY = 0x2; | |
1626 public static const int SHRG_RETURNCMD = 0x1; | |
1627 public static const int SIF_ALL = 0x17; | |
1628 public static const int SIF_DISABLENOSCROLL = 0x8; | |
1629 public static const int SIF_PAGE = 0x2; | |
1630 public static const int SIF_POS = 0x4; | |
1631 public static const int SIF_RANGE = 0x1; | |
1632 public static const int SIF_TRACKPOS = 0x10; | |
1633 public static const int SIP_DOWN = 1; | |
1634 public static const int SIP_UP = 0; | |
1635 public static const int SIPF_ON = 0x1; | |
1636 public static const int SIZE_RESTORED = 0; | |
1637 public static const int SIZE_MINIMIZED = 1; | |
1638 public static const int SIZE_MAXIMIZED = 2; | |
1639 public static const int SIZEPALETTE = 104; | |
1640 public static const int SM_CMONITORS = 80; | |
1641 public static const int SM_CXBORDER = 0x5; | |
1642 public static const int SM_CXCURSOR = 0xd; | |
1643 public static const int SM_CXDOUBLECLK = 36; | |
1644 public static const int SM_CYDOUBLECLK = 37; | |
1645 public static const int SM_CXEDGE = 0x2d; | |
213 | 1646 public static const int SM_CXFOCUSBORDER = 83; |
3 | 1647 public static const int SM_CXHSCROLL = 0x15; |
1648 public static const int SM_CXICON = 0x0b; | |
1649 public static const int SM_CYICON = 0x0c; | |
1650 public static const int SM_CXVIRTUALSCREEN = 78; | |
1651 public static const int SM_CYVIRTUALSCREEN = 79; | |
1652 public static const int SM_CXSMICON = 49; | |
1653 public static const int SM_CYSMICON = 50; | |
1654 public static const int SM_CXSCREEN = 0x0; | |
1655 public static const int SM_XVIRTUALSCREEN = 76; | |
1656 public static const int SM_YVIRTUALSCREEN = 77; | |
1657 public static const int SM_CXVSCROLL = 0x2; | |
1658 public static const int SM_CYBORDER = 0x6; | |
1659 public static const int SM_CYCURSOR = 0xe; | |
213 | 1660 public static const int SM_CYFOCUSBORDER = 84; |
3 | 1661 public static const int SM_CYHSCROLL = 0x3; |
1662 public static const int SM_CYMENU = 0xf; | |
1663 public static const int SM_CXMINTRACK = 34; | |
1664 public static const int SM_CYMINTRACK = 35; | |
1665 public static const int SM_CMOUSEBUTTONS = 43; | |
1666 public static const int SM_CYSCREEN = 0x1; | |
1667 public static const int SM_CYVSCROLL = 0x14; | |
1668 // public static const int SM_DBCSENABLED = 0x2A; | |
1669 // public static const int SM_IMMENABLED = 0x52; | |
1670 public static const int SPI_GETFONTSMOOTHINGTYPE = 0x200A; | |
1671 public static const int SPI_GETHIGHCONTRAST = 66; | |
1672 public static const int SPI_GETWORKAREA = 0x30; | |
213 | 1673 public static const int SPI_GETMOUSEVANISH = 0x1020; |
3 | 1674 public static const int SPI_GETNONCLIENTMETRICS = 41; |
1675 public static const int SPI_GETWHEELSCROLLLINES = 104; | |
213 | 1676 public static const int SPI_GETCARETWIDTH = 0x2006; |
3 | 1677 public static const int SPI_SETSIPINFO = 224; |
1678 public static const int SPI_SETHIGHCONTRAST = 67; | |
1679 public static const int SRCAND = 0x8800c6; | |
1680 public static const int SRCCOPY = 0xcc0020; | |
1681 public static const int SRCINVERT = 0x660046; | |
1682 public static const int SRCPAINT = 0xee0086; | |
1683 public static const int SS_BITMAP = 0xe; | |
1684 public static const int SS_CENTER = 0x1; | |
1685 public static const int SS_CENTERIMAGE = 0x200; | |
1686 public static const int SS_EDITCONTROL = 0x2000; | |
1687 public static const int SS_ICON = 0x3; | |
1688 public static const int SS_LEFT = 0x0; | |
1689 public static const int SS_LEFTNOWORDWRAP = 0xc; | |
1690 public static const int SS_NOTIFY = 0x100; | |
1691 public static const int SS_OWNERDRAW = 0xd; | |
1692 public static const int SS_REALSIZEIMAGE = 0x800; | |
1693 public static const int SS_RIGHT = 0x2; | |
1694 public static const int STANDARD_RIGHTS_READ = 0x20000; | |
1695 public static const int STARTF_USESHOWWINDOW = 0x1; | |
213 | 1696 public static const int STATE_SYSTEM_INVISIBLE = 0x00008000; |
1697 public static const int STATE_SYSTEM_OFFSCREEN = 0x00010000; | |
1698 public static const int STATE_SYSTEM_UNAVAILABLE = 0x00000001; | |
3 | 1699 public static const int STD_COPY = 0x1; |
1700 public static const int STD_CUT = 0x0; | |
1701 public static const int STD_FILENEW = 0x6; | |
1702 public static const int STD_FILEOPEN = 0x7; | |
1703 public static const int STD_FILESAVE = 0x8; | |
1704 public static const int STD_PASTE = 0x2; | |
1705 public static const int STM_GETIMAGE = 0x173; | |
1706 public static const int STM_SETIMAGE = 0x172; | |
1707 public static const int SWP_ASYNCWINDOWPOS = 0x4000; | |
1708 public static const int SWP_DRAWFRAME = 0x20; | |
1709 public static const int SWP_NOACTIVATE = 0x10; | |
1710 public static const int SWP_NOCOPYBITS = 0x100; | |
1711 public static const int SWP_NOMOVE = 0x2; | |
1712 public static const int SWP_NOREDRAW = 0x8; | |
1713 public static const int SWP_NOSIZE = 0x1; | |
1714 public static const int SWP_NOZORDER = 0x4; | |
1715 public static const int SW_ERASE = 0x4; | |
1716 public static const int SW_HIDE = 0x0; | |
1717 public static const int SW_INVALIDATE = 0x2; | |
1718 public static const int SW_MINIMIZE = 0x6; | |
1719 public static const int SW_PARENTOPENING = 0x3; | |
1720 public static const int SW_RESTORE = IsWinCE ? 0xd : 0x9; | |
1721 public static const int SW_SCROLLCHILDREN = 0x1; | |
1722 public static const int SW_SHOW = 0x5; | |
1723 public static const int SW_SHOWMAXIMIZED = IsWinCE ? 0xb : 0x3; | |
1724 public static const int SW_SHOWMINIMIZED = 0x2; | |
1725 public static const int SW_SHOWMINNOACTIVE = 0x7; | |
1726 public static const int SW_SHOWNA = 0x8; | |
1727 public static const int SW_SHOWNOACTIVATE = 0x4; | |
1728 public static const int SYNCHRONIZE = 0x100000; | |
1729 public static const int SYSRGN = 0x4; | |
1730 public static const int SYSTEM_FONT = 0xd; | |
1731 public static const int S_OK = 0x0; | |
1732 public static const int TABP_TABITEM = 1; | |
1733 public static const int TABP_TABITEMLEFTEDGE = 2; | |
1734 public static const int TABP_TABITEMRIGHTEDGE = 3; | |
1735 public static const int TABP_TABITEMBOTHEDGE = 4; | |
1736 public static const int TABP_TOPTABITEM = 5; | |
1737 public static const int TABP_TOPTABITEMLEFTEDGE = 6; | |
1738 public static const int TABP_TOPTABITEMRIGHTEDGE = 7; | |
1739 public static const int TABP_TOPTABITEMBOTHEDGE = 8; | |
1740 public static const int TABP_PANE = 9; | |
1741 public static const int TABP_BODY = 10; | |
1742 public static const int TBIF_COMMAND = 0x20; | |
1743 public static const int TBIF_STATE = 0x4; | |
1744 public static const int TBIF_IMAGE = 0x1; | |
1745 public static const int TBIF_LPARAM = 0x10; | |
1746 public static const int TBIF_SIZE = 0x40; | |
1747 public static const int TBIF_STYLE = 0x8; | |
1748 public static const int TBIF_TEXT = 0x2; | |
1749 public static const int TB_GETEXTENDEDSTYLE = 0x400 + 85; | |
1750 public static const int TBM_GETLINESIZE = 0x418; | |
1751 public static const int TBM_GETPAGESIZE = 0x416; | |
1752 public static const int TBM_GETPOS = 0x400; | |
1753 public static const int TBM_GETRANGEMAX = 0x402; | |
1754 public static const int TBM_GETRANGEMIN = 0x401; | |
1755 public static const int TBM_GETTHUMBRECT = 0x419; | |
1756 public static const int TBM_SETLINESIZE = 0x417; | |
1757 public static const int TBM_SETPAGESIZE = 0x415; | |
1758 public static const int TBM_SETPOS = 0x405; | |
1759 public static const int TBM_SETRANGEMAX = 0x408; | |
1760 public static const int TBM_SETRANGEMIN = 0x407; | |
1761 public static const int TBM_SETTICFREQ = 0x414; | |
1762 public static const int TBN_DROPDOWN = 0xfffffd3a; | |
1763 public static const int TBN_FIRST = 0xfffffd44; | |
1764 public static const int TBN_HOTITEMCHANGE = 0xFFFFFD37; | |
1765 public static const int TBSTATE_CHECKED = 0x1; | |
1766 public static const int TBSTATE_PRESSED = 0x02; | |
1767 public static const int TBSTYLE_CUSTOMERASE = 0x2000; | |
1768 public static const int TBSTYLE_DROPDOWN = 0x8; | |
1769 public static const int TBSTATE_ENABLED = 0x4; | |
1770 public static const int TBSTYLE_AUTOSIZE = 0x10; | |
19 | 1771 public static const int TBSTYLE_EX_DOUBLEBUFFER = 0x80; |
3 | 1772 public static const int TBSTYLE_EX_DRAWDDARROWS = 0x1; |
1773 public static const int TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x10; | |
1774 public static const int TBSTYLE_EX_MIXEDBUTTONS = 0x8; | |
1775 public static const int TBSTYLE_FLAT = 0x800; | |
1776 public static const int TBSTYLE_LIST = 0x1000; | |
1777 public static const int TBSTYLE_TOOLTIPS = 0x100; | |
1778 public static const int TBSTYLE_TRANSPARENT = 0x8000; | |
1779 public static const int TBSTYLE_WRAPABLE = 0x200; | |
1780 public static const int TBS_AUTOTICKS = 0x1; | |
1781 public static const int TBS_BOTH = 0x8; | |
1782 public static const int TBS_DOWNISLEFT = 0x0400; | |
1783 public static const int TBS_HORZ = 0x0; | |
1784 public static const int TBS_VERT = 0x2; | |
1785 public static const int TB_ADDSTRING = IsUnicode ? 0x44d : 0x41c; | |
1786 public static const int TB_AUTOSIZE = 0x421; | |
1787 public static const int TB_BUTTONCOUNT = 0x418; | |
1788 public static const int TB_BUTTONSTRUCTSIZE = 0x41e; | |
1789 public static const int TB_COMMANDTOINDEX = 0x419; | |
1790 public static const int TB_DELETEBUTTON = 0x416; | |
1791 public static const int TB_ENDTRACK = 0x8; | |
1792 public static const int TB_GETBUTTON = 0x417; | |
1793 public static const int TB_GETBUTTONINFO = IsUnicode ? 0x43f : 0x441; | |
1794 public static const int TB_GETBUTTONSIZE = 0x43a; | |
1795 public static const int TB_GETBUTTONTEXT = IsUnicode ? 0x44b : 0x42d; | |
1796 public static const int TB_GETDISABLEDIMAGELIST = 0x437; | |
1797 public static const int TB_GETHOTIMAGELIST = 0x435; | |
1798 public static const int TB_GETHOTITEM = 0x0400 + 71; | |
1799 public static const int TB_GETIMAGELIST = 0x431; | |
1800 public static const int TB_GETITEMRECT = 0x41d; | |
1801 public static const int TB_GETPADDING = 0x0400 + 86; | |
1802 public static const int TB_GETROWS = 0x428; | |
1803 public static const int TB_GETSTATE = 0x412; | |
1804 public static const int TB_GETTOOLTIPS = 0x423; | |
1805 public static const int TB_INSERTBUTTON = IsUnicode ? 0x443 : 0x415; | |
1806 public static const int TB_LOADIMAGES = 0x432; | |
1807 public static const int TB_MAPACCELERATOR = 0x0400 + (IsUnicode ? 90 : 78); | |
1808 public static const int TB_SETBITMAPSIZE = 0x420; | |
1809 public static const int TB_SETBUTTONINFO = IsUnicode ? 0x440 : 0x442; | |
1810 public static const int TB_SETBUTTONSIZE = 0x41f; | |
1811 public static const int TB_SETDISABLEDIMAGELIST = 0x436; | |
1812 public static const int TB_SETEXTENDEDSTYLE = 0x454; | |
1813 public static const int TB_SETHOTIMAGELIST = 0x434; | |
1814 public static const int TB_SETHOTITEM = 0x0400 + 72; | |
1815 public static const int TB_SETIMAGELIST = 0x430; | |
1816 public static const int TB_SETPARENT = 0x400 + 37; | |
1817 public static const int TB_SETROWS = 0x427; | |
1818 public static const int TB_SETSTATE = 0x411; | |
1819 public static const int TB_THUMBPOSITION = 0x4; | |
1820 public static const int TCIF_IMAGE = 0x2; | |
1821 public static const int TCIF_TEXT = 0x1; | |
1822 public static const int TCI_SRCCHARSET = 0x1; | |
1823 public static const int TCI_SRCCODEPAGE = 0x2; | |
1824 public static const int TCM_ADJUSTRECT = 0x1328; | |
1825 public static const int TCM_DELETEITEM = 0x1308; | |
1826 public static const int TCM_GETCURSEL = 0x130b; | |
1827 public static const int TCM_GETITEMCOUNT = 0x1304; | |
1828 public static const int TCM_GETITEMRECT = 0x130a; | |
1829 public static const int TCM_GETTOOLTIPS = 0x132d; | |
213 | 1830 public static const int TCM_HITTEST = 0x130d; |
3 | 1831 public static const int TCM_INSERTITEM = IsUnicode ? 0x133e : 0x1307; |
1832 public static const int TCM_SETCURSEL = 0x130c; | |
1833 public static const int TCM_SETIMAGELIST = 0x1303; | |
1834 public static const int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306; | |
1835 public static const int TCN_SELCHANGE = 0xfffffdd9; | |
1836 public static const int TCN_SELCHANGING = 0xfffffdd8; | |
1837 public static const int TCS_BOTTOM = 0x0002; | |
1838 public static const int TCS_FOCUSNEVER = 0x8000; | |
1839 public static const int TCS_MULTILINE = 0x200; | |
1840 public static const int TCS_TABS = 0x0; | |
1841 public static const int TCS_TOOLTIPS = 0x4000; | |
1842 public static const int TECHNOLOGY = 0x2; | |
213 | 1843 public static const int TF_ATTR_INPUT = 0; |
1844 public static const int TF_ATTR_TARGET_CONVERTED = 1; | |
1845 public static const int TF_ATTR_CONVERTED = 2; | |
1846 public static const int TF_ATTR_TARGET_NOTCONVERTED = 3; | |
1847 public static const int TF_ATTR_INPUT_ERROR = 4; | |
1848 public static const int TF_ATTR_FIXEDCONVERTED = 5; | |
1849 public static const int TF_ATTR_OTHER = -1; | |
1850 public alias TF_DA_COLORTYPE.TF_CT_NONE TF_CT_NONE; | |
1851 public alias TF_DA_COLORTYPE.TF_CT_SYSCOLOR TF_CT_SYSCOLOR; | |
1852 public alias TF_DA_COLORTYPE.TF_CT_COLORREF TF_CT_COLORREF; | |
1853 public alias TF_DA_LINESTYLE.TF_LS_NONE TF_LS_NONE; | |
1854 public alias TF_DA_LINESTYLE.TF_LS_SOLID TF_LS_SOLID; | |
1855 public alias TF_DA_LINESTYLE.TF_LS_DOT TF_LS_DOT; | |
1856 public alias TF_DA_LINESTYLE.TF_LS_DASH TF_LS_DASH; | |
1857 public alias TF_DA_LINESTYLE.TF_LS_SQUIGGLE TF_LS_SQUIGGLE; | |
3 | 1858 public static const int TIME_NOSECONDS = 0x2; |
1859 public static const int TIS_NORMAL = 1; | |
1860 public static const int TIS_HOT = 2; | |
1861 public static const int TIS_SELECTED = 3; | |
1862 public static const int TIS_DISABLED = 4; | |
1863 public static const int TIS_FOCUSED = 5; | |
1864 public static const int TKP_TRACK = 1; | |
1865 public static const int TKP_TRACKVERT = 2; | |
1866 public static const int TKP_THUMB = 3; | |
1867 public static const int TKP_THUMBBOTTOM = 4; | |
1868 public static const int TKP_THUMBTOP = 5; | |
1869 public static const int TKP_THUMBVERT = 6; | |
1870 public static const int TKP_THUMBLEFT = 7; | |
1871 public static const int TKP_THUMBRIGHT = 8; | |
1872 public static const int TKP_TICS = 9; | |
1873 public static const int TKP_TICSVERT = 10; | |
1874 public static const int TME_HOVER = 0x1; | |
1875 public static const int TME_LEAVE = 0x2; | |
1876 public static const int TME_QUERY = 0x40000000; | |
1877 public static const int TMPF_VECTOR = 0x2; | |
1878 public static const int TMT_CONTENTMARGINS = 3602; | |
67
3f4e6a4ecc09
Table, TableItem, TableColumn
Frank Benoit <benoit@tionex.de>
parents:
65
diff
changeset
|
1879 public static const TCHAR[] TOOLBARCLASSNAME = "ToolbarWindow32"; //$NON-NLS-1$ |
3f4e6a4ecc09
Table, TableItem, TableColumn
Frank Benoit <benoit@tionex.de>
parents:
65
diff
changeset
|
1880 public static const TCHAR[] TOOLTIPS_CLASS = "tooltips_class32"; //$NON-NLS-1$ |
3 | 1881 public static const int TP_BUTTON = 1; |
1882 public static const int TP_DROPDOWNBUTTON = 2; | |
1883 public static const int TP_SPLITBUTTON = 3; | |
1884 public static const int TP_SPLITBUTTONDROPDOWN = 4; | |
1885 public static const int TP_SEPARATOR = 5; | |
1886 public static const int TP_SEPARATORVERT = 6; | |
1887 public static const int TPM_LEFTALIGN = 0x0; | |
1888 public static const int TPM_LEFTBUTTON = 0x0; | |
1889 public static const int TPM_RIGHTBUTTON = 0x2; | |
1890 public static const int TPM_RIGHTALIGN = 0x8; | |
63 | 1891 public static const TCHAR[] TRACKBAR_CLASS = "msctls_trackbar32"; //$NON-NLS-1$ |
3 | 1892 public static const int TRANSPARENT = 0x1; |
1893 public static const int TREIS_DISABLED = 4; | |
1894 public static const int TREIS_HOT = 2; | |
1895 public static const int TREIS_NORMAL = 1; | |
1896 public static const int TREIS_SELECTED = 3; | |
1897 public static const int TREIS_SELECTEDNOTFOCUS = 5; | |
1898 public static const int TS_MIN = 0; | |
1899 public static const int TS_TRUE = 1; | |
1900 public static const int TS_DRAW = 2; | |
1901 public static const int TS_NORMAL = 1; | |
1902 public static const int TS_HOT = 2; | |
1903 public static const int TS_PRESSED = 3; | |
1904 public static const int TS_DISABLED = 4; | |
1905 public static const int TS_CHECKED = 5; | |
1906 public static const int TS_HOTCHECKED = 6; | |
1907 public static const int TTDT_AUTOMATIC = 0; | |
1908 public static const int TTDT_RESHOW = 1; | |
1909 public static const int TTDT_AUTOPOP = 2; | |
1910 public static const int TTDT_INITIAL = 3; | |
1911 public static const int TTF_ABSOLUTE = 0x80; | |
1912 public static const int TTF_IDISHWND = 0x1; | |
1913 public static const int TTF_SUBCLASS = 0x10; | |
1914 public static const int TTF_RTLREADING = 0x4; | |
1915 public static const int TTF_TRACK = 0x20; | |
1916 public static const int TTF_TRANSPARENT = 0x100; | |
1917 public static const int TTI_NONE = 0; | |
1918 public static const int TTI_INFO = 1; | |
1919 public static const int TTI_WARNING = 2; | |
1920 public static const int TTI_ERROR= 3; | |
1921 public static const int TTM_ACTIVATE = 0x400 + 1; | |
1922 public static const int TTM_ADDTOOL = IsUnicode ? 0x432 : 0x404; | |
213 | 1923 public static const int TTM_ADJUSTRECT = 0x400 + 31; |
3 | 1924 public static const int TTM_GETCURRENTTOOLA = 0x400 + 15; |
1925 public static const int TTM_GETCURRENTTOOLW = 0x400 + 59; | |
1926 public static const int TTM_GETCURRENTTOOL = 0x400 + (IsUnicode ? 59 : 15); | |
1927 public static const int TTM_GETDELAYTIME = 0x400 + 21; | |
1928 public static const int TTM_DELTOOL = IsUnicode ? 0x433 : 0x405; | |
1929 public static const int TTM_GETTOOLINFO = 0x400 + (IsUnicode ? 53 : 8); | |
1930 public static const int TTM_NEWTOOLRECT = 0x400 + (IsUnicode ? 52 : 6); | |
19 | 1931 public static const int TTM_POP = 0x400 + 28; |
3 | 1932 public static const int TTM_SETDELAYTIME = 0x400 + 3; |
1933 public static const int TTM_SETMAXTIPWIDTH = 0x418; | |
1934 public static const int TTM_SETTITLEA = 0x400 + 32; | |
1935 public static const int TTM_SETTITLEW = 0x400 + 33; | |
1936 public static const int TTM_SETTITLE = 0x400 + (IsUnicode ? 33 : 32); | |
1937 public static const int TTM_TRACKPOSITION = 1042; | |
1938 public static const int TTM_TRACKACTIVATE = 1041; | |
1939 public static const int TTM_UPDATE = 0x41D; | |
1940 public static const int TTN_FIRST = 0xfffffdf8; | |
1941 public static const int TTN_GETDISPINFO = IsUnicode ? 0xfffffdee : 0xfffffdf8; | |
1942 public static const int TTN_GETDISPINFOW = 0xfffffdee; | |
1943 public static const int TTN_GETDISPINFOA = 0xfffffdf8; | |
1944 public static const int TTN_POP = TTN_FIRST - 2; | |
1945 public static const int TTN_SHOW = TTN_FIRST - 1; | |
1946 public static const int TTS_ALWAYSTIP = 0x1; | |
1947 public static const int TTS_BALLOON = 0x40; | |
213 | 1948 public static const int TTS_NOANIMATE = 0x10; |
1949 public static const int TTS_NOFADE = 0x20; | |
1950 public static const int TTS_NOPREFIX = 0x02; | |
3 | 1951 public static const int TV_FIRST = 0x1100; |
1952 public static const int TVE_COLLAPSE = 0x1; | |
1953 public static const int TVE_COLLAPSERESET = 0x8000; | |
1954 public static const int TVE_EXPAND = 0x2; | |
1955 public static const int TVGN_CARET = 0x9; | |
1956 public static const int TVGN_CHILD = 0x4; | |
1957 public static const int TVGN_DROPHILITED = 0x8; | |
1958 public static const int TVGN_FIRSTVISIBLE = 0x5; | |
1959 public static const int TVGN_LASTVISIBLE = 0xa; | |
1960 public static const int TVGN_NEXT = 0x1; | |
1961 public static const int TVGN_NEXTVISIBLE = 0x6; | |
1962 public static const int TVGN_PARENT = 0x3; | |
1963 public static const int TVGN_PREVIOUS = 0x2; | |
1964 public static const int TVGN_PREVIOUSVISIBLE = 0x7; | |
1965 public static const int TVGN_ROOT = 0x0; | |
1966 public static const int TVHT_ONITEM = 0x46; | |
1967 public static const int TVHT_ONITEMBUTTON = 16; | |
1968 public static const int TVHT_ONITEMICON = 0x2; | |
213 | 1969 public static const int TVHT_ONITEMINDENT = 0x8; |
1970 public static const int TVHT_ONITEMRIGHT = 0x20; | |
3 | 1971 public static const int TVHT_ONITEMLABEL = 0x4; |
1972 public static const int TVHT_ONITEMSTATEICON = 0x40; | |
1973 public static const int TVIF_HANDLE = 0x10; | |
1974 public static const int TVIF_IMAGE = 0x2; | |
1975 public static const int TVIF_INTEGRAL = 0x0080; | |
1976 public static const int TVIF_PARAM = 0x4; | |
1977 public static const int TVIF_SELECTEDIMAGE = 0x20; | |
1978 public static const int TVIF_STATE = 0x8; | |
1979 public static const int TVIF_TEXT = 0x1; | |
1980 public static const int TVIS_DROPHILITED = 0x8; | |
1981 public static const int TVIS_EXPANDED = 0x20; | |
1982 public static const int TVIS_SELECTED = 0x2; | |
1983 public static const int TVIS_STATEIMAGEMASK = 0xf000; | |
213 | 1984 public static const int /*long*/ TVI_FIRST = -0x0FFFF; |
1985 public static const int /*long*/ TVI_LAST = -0x0FFFE; | |
1986 public static const int /*long*/ TVI_ROOT = -0x10000; | |
1987 public static const int /*long*/ TVI_SORT = -0x0FFFD; | |
3 | 1988 public static const int TVM_CREATEDRAGIMAGE = TV_FIRST + 18; |
1989 public static const int TVM_DELETEITEM = 0x1101; | |
1990 public static const int TVM_ENSUREVISIBLE = 0x1114; | |
1991 public static const int TVM_EXPAND = 0x1102; | |
1992 public static const int TVM_GETBKCOLOR = 0x111f; | |
1993 public static const int TVM_GETCOUNT = 0x1105; | |
1994 public static const int TVM_GETEXTENDEDSTYLE = TV_FIRST + 45; | |
1995 public static const int TVM_GETIMAGELIST = 0x1108; | |
1996 public static const int TVM_GETITEM = IsUnicode ? 0x113e : 0x110c; | |
1997 public static const int TVM_GETITEMHEIGHT = 0x111c; | |
1998 public static const int TVM_GETITEMRECT = 0x1104; | |
1999 public static const int TVM_GETITEMSTATE = TV_FIRST + 39; | |
2000 public static const int TVM_GETNEXTITEM = 0x110a; | |
2001 public static const int TVM_GETTEXTCOLOR = 0x1120; | |
2002 public static const int TVM_GETTOOLTIPS = TV_FIRST + 25; | |
2003 public static const int TVM_GETVISIBLECOUNT = TV_FIRST + 16; | |
2004 public static const int TVM_HITTEST = 0x1111; | |
2005 public static const int TVM_INSERTITEM = IsUnicode ? 0x1132 : 0x1100; | |
2006 public static const int TVM_MAPACCIDTOHTREEITEM = TV_FIRST + 42; | |
2007 public static const int TVM_MAPHTREEITEMTOACCID = TV_FIRST + 43; | |
2008 public static const int TVM_SELECTITEM = 0x110b; | |
2009 public static const int TVM_SETBKCOLOR = 0x111d; | |
2010 public static const int TVM_SETEXTENDEDSTYLE = TV_FIRST + 44; | |
2011 public static const int TVM_SETIMAGELIST = 0x1109; | |
2012 public static const int TVM_SETINSERTMARK = 0x111a; | |
2013 public static const int TVM_SETITEM = IsUnicode ? 0x113f : 0x110d; | |
2014 public static const int TVM_SETITEMHEIGHT = TV_FIRST + 27; | |
2015 public static const int TVM_SETSCROLLTIME = TV_FIRST + 33; | |
2016 public static const int TVM_SETTEXTCOLOR = 0x111e; | |
2017 public static const int TVM_SORTCHILDREN = TV_FIRST + 19; | |
2018 public static const int TVM_SORTCHILDRENCB = TV_FIRST + 21; | |
2019 public static const int TVN_BEGINDRAGW = 0xfffffe38; | |
2020 public static const int TVN_BEGINDRAGA = 0xfffffe69; | |
2021 public static const int TVN_BEGINRDRAGW = 0xfffffe37; | |
2022 public static const int TVN_BEGINRDRAGA = 0xfffffe68; | |
2023 public static const int TVN_FIRST = 0xfffffe70; | |
2024 public static const int TVN_GETDISPINFOA = TVN_FIRST - 3; | |
2025 public static const int TVN_GETDISPINFOW = TVN_FIRST - 52; | |
2026 public static const int TVN_ITEMCHANGINGW = TVN_FIRST - 17; | |
2027 public static const int TVN_ITEMCHANGINGA = TVN_FIRST - 16; | |
2028 public static const int TVN_ITEMEXPANDEDA = TVN_FIRST -6; | |
2029 public static const int TVN_ITEMEXPANDEDW = TVN_FIRST - 55; | |
2030 public static const int TVN_ITEMEXPANDINGW = 0xfffffe3a; | |
2031 public static const int TVN_ITEMEXPANDINGA = 0xfffffe6b; | |
2032 public static const int TVN_SELCHANGEDW = 0xfffffe3d; | |
2033 public static const int TVN_SELCHANGEDA = 0xfffffe6e; | |
2034 public static const int TVN_SELCHANGINGW = 0xfffffe3e; | |
2035 public static const int TVN_SELCHANGINGA = 0xfffffe6f; | |
2036 public static const int TVP_GLYPH = 2; | |
2037 public static const int TVP_TREEITEM = 1; | |
2038 public static const int TVSIL_NORMAL = 0x0; | |
2039 public static const int TVSIL_STATE = 0x2; | |
2040 public static const int TVS_DISABLEDRAGDROP = 0x10; | |
2041 public static const int TVS_EX_AUTOHSCROLL = 0x0020; | |
2042 public static const int TVS_EX_DOUBLEBUFFER = 0x0004; | |
2043 public static const int TVS_EX_DIMMEDCHECKBOXES = 0x0200; | |
2044 public static const int TVS_EX_DRAWIMAGEASYNC = 0x0400; | |
2045 public static const int TVS_EX_EXCLUSIONCHECKBOXES = 0x0100; | |
2046 public static const int TVS_EX_FADEINOUTEXPANDOS = 0x0040; | |
2047 public static const int TVS_EX_MULTISELECT = 0x0002; | |
2048 public static const int TVS_EX_NOINDENTSTATE = 0x0008; | |
2049 public static const int TVS_EX_PARTIALCHECKBOXES = 0x0080; | |
2050 public static const int TVS_EX_RICHTOOLTIP = 0x0010; | |
2051 public static const int TVS_FULLROWSELECT = 0x1000; | |
2052 public static const int TVS_HASBUTTONS = 0x1; | |
2053 public static const int TVS_HASLINES = 0x2; | |
2054 public static const int TVS_LINESATROOT = 0x4; | |
2055 public static const int TVS_NOHSCROLL = 0x8000; | |
2056 public static const int TVS_NONEVENHEIGHT = 0x4000; | |
213 | 2057 public static const int TVS_NOSCROLL = 0x2000; |
3 | 2058 public static const int TVS_NOTOOLTIPS = 0x80; |
2059 public static const int TVS_SHOWSELALWAYS = 0x20; | |
2060 public static const int TVS_TRACKSELECT = 0x200; | |
2061 public static const int UDM_GETACCEL = 0x046C; | |
2062 public static const int UDM_GETRANGE32 = 0x0470; | |
2063 public static const int UDM_GETPOS = 0x468; | |
2064 public static const int UDM_GETPOS32 = 0x0472; | |
2065 public static const int UDM_SETACCEL = 0x046B; | |
2066 public static const int UDM_SETRANGE32 = 0x046f; | |
2067 public static const int UDM_SETPOS = 0x467; | |
2068 public static const int UDM_SETPOS32 = 0x0471; | |
2069 public static const int UDN_DELTAPOS = -722; | |
2070 public static const int UDS_ALIGNLEFT = 0x008; | |
2071 public static const int UDS_ALIGNRIGHT = 0x004; | |
2072 public static const int UDS_AUTOBUDDY = 0x0010; | |
2073 public static const int UDS_WRAP = 0x0001; | |
213 | 2074 public static const int UIS_CLEAR = 2; |
3 | 2075 public static const int UIS_INITIALIZE = 3; |
213 | 2076 public static const int UIS_SET = 1; |
3 | 2077 public static const int UISF_HIDEACCEL = 0x2; |
2078 public static const int UISF_HIDEFOCUS = 0x1; | |
65 | 2079 public static const TCHAR[] UPDOWN_CLASS = "msctls_updown32"; //$NON-NLS-1$ |
3 | 2080 public static const int USP_E_SCRIPT_NOT_IN_FONT = 0x80040200; |
2081 public static const int VERTRES = 0xa; | |
2082 public static const int VK_BACK = 0x8; | |
2083 public static const int VK_CANCEL = 0x3; | |
2084 public static const int VK_CAPITAL = 0x14; | |
2085 public static const int VK_CONTROL = 0x11; | |
2086 public static const int VK_DECIMAL = 0x6E; | |
2087 public static const int VK_DELETE = 0x2e; | |
2088 public static const int VK_DIVIDE = 0x6f; | |
2089 public static const int VK_DOWN = 0x28; | |
2090 public static const int VK_END = 0x23; | |
2091 public static const int VK_ESCAPE = 0x1b; | |
2092 public static const int VK_F1 = 0x70; | |
2093 public static const int VK_F10 = 0x79; | |
2094 public static const int VK_F11 = 0x7a; | |
2095 public static const int VK_F12 = 0x7b; | |
2096 public static const int VK_F13 = 0x7c; | |
2097 public static const int VK_F14 = 0x7d; | |
2098 public static const int VK_F15 = 0x7e; | |
2099 public static const int VK_F2 = 0x71; | |
2100 public static const int VK_F3 = 0x72; | |
2101 public static const int VK_F4 = 0x73; | |
2102 public static const int VK_F5 = 0x74; | |
2103 public static const int VK_F6 = 0x75; | |
2104 public static const int VK_F7 = 0x76; | |
2105 public static const int VK_F8 = 0x77; | |
2106 public static const int VK_F9 = 0x78; | |
2107 public static const int VK_HOME = 0x24; | |
2108 public static const int VK_INSERT = 0x2d; | |
2109 public static const int VK_LBUTTON = 0x1; | |
2110 public static const int VK_LEFT = 0x25; | |
2111 public static const int VK_MBUTTON = 0x4; | |
2112 public static const int VK_MENU = 0x12; | |
2113 public static const int VK_MULTIPLY = 0x6A; | |
2114 public static const int VK_N = 0x4e; | |
2115 public static const int VK_NEXT = 0x22; | |
2116 public static const int VK_NUMLOCK = 0x90; | |
2117 public static const int VK_NUMPAD0 = 0x60; | |
2118 public static const int VK_NUMPAD1 = 0x61; | |
2119 public static const int VK_NUMPAD2 = 0x62; | |
2120 public static const int VK_NUMPAD3 = 0x63; | |
2121 public static const int VK_NUMPAD4 = 0x64; | |
2122 public static const int VK_NUMPAD5 = 0x65; | |
2123 public static const int VK_NUMPAD6 = 0x66; | |
2124 public static const int VK_NUMPAD7 = 0x67; | |
2125 public static const int VK_NUMPAD8 = 0x68; | |
2126 public static const int VK_NUMPAD9 = 0x69; | |
2127 public static const int VK_PAUSE = 0x13; | |
2128 public static const int VK_PRIOR = 0x21; | |
2129 public static const int VK_RBUTTON = 0x2; | |
2130 public static const int VK_RETURN = 0xd; | |
2131 public static const int VK_RIGHT = 0x27; | |
2132 public static const int VK_SCROLL = 0x91; | |
2133 public static const int VK_SEPARATOR = 0x6C; | |
2134 public static const int VK_SHIFT = 0x10; | |
2135 public static const int VK_SNAPSHOT = 0x2C; | |
2136 public static const int VK_SPACE = 0x20; | |
2137 public static const int VK_SUBTRACT = 0x6D; | |
2138 public static const int VK_TAB = 0x9; | |
2139 public static const int VK_UP = 0x26; | |
2140 public static const int VK_XBUTTON1 = 0x05; | |
2141 public static const int VK_XBUTTON2 = 0x06; | |
2142 public static const int VK_ADD = 0x6B; | |
2143 public static const int VK_APP1 = 0xc1; | |
2144 public static const int VK_APP2 = 0xc2; | |
2145 public static const int VK_APP3 = 0xc3; | |
2146 public static const int VK_APP4 = 0xc4; | |
2147 public static const int VK_APP5 = 0xc5; | |
2148 public static const int VK_APP6 = 0xc6; | |
52 | 2149 public static const TCHAR[] WC_HEADER = "SysHeader32"; //$NON-NLS-1$ |
2150 public static const TCHAR[] WC_LINK = "SysLink"; //$NON-NLS-1$ | |
2151 public static const TCHAR[] WC_LISTVIEW = "SysListView32"; //$NON-NLS-1$ | |
2152 public static const TCHAR[] WC_TABCONTROL = "SysTabControl32"; //$NON-NLS-1$ | |
2153 public static const TCHAR[] WC_TREEVIEW = "SysTreeView32"; //$NON-NLS-1$ | |
3 | 2154 public static const int WINDING = 2; |
2155 public static const int WH_CBT = 5; | |
2156 public static const int WH_GETMESSAGE = 0x3; | |
2157 public static const int WH_MSGFILTER = 0xFFFFFFFF; | |
2158 public static const int WH_FOREGROUNDIDLE = 11; | |
2159 public static const int WHEEL_DELTA = 120; | |
2160 public static const int WHEEL_PAGESCROLL = 0xFFFFFFFF; | |
2161 public static const int WHITE_BRUSH = 0; | |
2162 public static const int WM_ACTIVATE = 0x6; | |
2163 public static const int WM_ACTIVATEAPP = 0x1c; | |
2164 public static const int WM_APP = 0x8000; | |
213 | 2165 public static const int WM_DWMCOLORIZATIONCOLORCHANGED = 0x320; |
3 | 2166 public static const int WM_CANCELMODE = 0x1f; |
2167 public static const int WM_CAPTURECHANGED = 0x0215; | |
2168 public static const int WM_CHANGEUISTATE = 0x0127; | |
2169 public static const int WM_CHAR = 0x102; | |
2170 public static const int WM_CLEAR = 0x303; | |
2171 public static const int WM_CLOSE = 0x10; | |
2172 public static const int WM_COMMAND = 0x111; | |
2173 public static const int WM_CONTEXTMENU = 0x7b; | |
2174 public static const int WM_COPY = 0x301; | |
19 | 2175 public static const int WM_CREATE = 0x0001; |
3 | 2176 public static const int WM_CTLCOLORBTN = 0x135; |
2177 public static const int WM_CTLCOLORDLG = 0x136; | |
2178 public static const int WM_CTLCOLOREDIT = 0x133; | |
2179 public static const int WM_CTLCOLORLISTBOX = 0x134; | |
2180 public static const int WM_CTLCOLORMSGBOX = 0x132; | |
2181 public static const int WM_CTLCOLORSCROLLBAR = 0x137; | |
2182 public static const int WM_CTLCOLORSTATIC = 0x138; | |
2183 public static const int WM_CUT = 0x300; | |
2184 public static const int WM_DEADCHAR = 0x103; | |
2185 public static const int WM_DESTROY = 0x2; | |
2186 public static const int WM_DRAWITEM = 0x2b; | |
2187 public static const int WM_ENDSESSION = 0x16; | |
2188 public static const int WM_ENTERIDLE = 0x121; | |
2189 public static const int WM_ERASEBKGND = 0x14; | |
2190 public static const int WM_GETDLGCODE = 0x87; | |
2191 public static const int WM_GETFONT = 0x31; | |
2192 // public static const int WM_GETICON = 0x7f; | |
2193 public static const int WM_GETOBJECT = 0x003D; | |
2194 public static const int WM_GETMINMAXINFO = 0x0024; | |
2195 public static const int WM_HELP = 0x53; | |
2196 public static const int WM_HOTKEY = 0x0312; | |
2197 public static const int WM_HSCROLL = 0x114; | |
2198 public static const int WM_IME_CHAR = 0x286; | |
2199 public static const int WM_IME_COMPOSITION = 0x10f; | |
213 | 2200 public static const int WM_IME_COMPOSITION_START = 0x010D; |
2201 public static const int WM_IME_ENDCOMPOSITION = 0x010E; | |
3 | 2202 public static const int WM_INITDIALOG = 0x110; |
2203 public static const int WM_INITMENUPOPUP = 0x117; | |
2204 public static const int WM_INPUTLANGCHANGE = 0x51; | |
2205 public static const int WM_KEYDOWN = 0x100; | |
2206 public static const int WM_KEYFIRST = 0x100; | |
2207 public static const int WM_KEYLAST = 0x108; | |
2208 public static const int WM_KEYUP = 0x101; | |
2209 public static const int WM_KILLFOCUS = 0x8; | |
2210 public static const int WM_LBUTTONDBLCLK = 0x203; | |
2211 public static const int WM_LBUTTONDOWN = 0x201; | |
2212 public static const int WM_LBUTTONUP = 0x202; | |
2213 public static const int WM_MBUTTONDBLCLK = 0x209; | |
2214 public static const int WM_MBUTTONDOWN = 0x207; | |
2215 public static const int WM_MBUTTONUP = 0x208; | |
2216 public static const int WM_MEASUREITEM = 0x2c; | |
2217 public static const int WM_MENUCHAR = 0x120; | |
2218 public static const int WM_MENUSELECT = 0x11f; | |
2219 public static const int WM_MOUSEACTIVATE = 0x21; | |
2220 public static const int WM_MOUSEFIRST = 0x200; | |
2221 public static const int WM_MOUSEHOVER = 0x2a1; | |
2222 public static const int WM_MOUSELEAVE = 0x2a3; | |
2223 public static const int WM_MOUSEMOVE = 0x200; | |
2224 public static const int WM_MOUSEWHEEL = 0x20a; | |
2225 public static const int WM_MOUSELAST = 0x20d; | |
2226 public static const int WM_MOVE = 0x3; | |
2227 public static const int WM_NCACTIVATE = 0x86; | |
2228 public static const int WM_NCCALCSIZE = 0x83; | |
2229 public static const int WM_NCHITTEST = 0x84; | |
2230 public static const int WM_NCLBUTTONDOWN = 0x00A1; | |
2231 public static const int WM_NCPAINT = 0x85; | |
2232 public static const int WM_NOTIFY = 0x4e; | |
2233 public static const int WM_NULL = 0x0; | |
2234 public static const int WM_PAINT = 0xf; | |
2235 public static const int WM_PALETTECHANGED = 0x311; | |
2236 public static const int WM_PARENTNOTIFY = 0x0210; | |
2237 public static const int WM_PASTE = 0x302; | |
2238 public static const int WM_PRINT = 0x0317; | |
2239 public static const int WM_PRINTCLIENT = 0x0318; | |
2240 public static const int WM_QUERYENDSESSION = 0x11; | |
2241 public static const int WM_QUERYNEWPALETTE = 0x30f; | |
2242 public static const int WM_QUERYOPEN = 0x13; | |
2243 public static const int WM_QUERYUISTATE = 0x129; | |
2244 public static const int WM_RBUTTONDBLCLK = 0x206; | |
2245 public static const int WM_RBUTTONDOWN = 0x204; | |
2246 public static const int WM_RBUTTONUP = 0x205; | |
2247 public static const int WM_SETCURSOR = 0x20; | |
2248 public static const int WM_SETFOCUS = 0x7; | |
2249 public static const int WM_SETFONT = 0x30; | |
2250 public static const int WM_SETICON = 0x80; | |
2251 public static const int WM_SETREDRAW = 0xb; | |
2252 public static const int WM_SETTEXT = 12; | |
2253 public static const int WM_SETTINGCHANGE = 0x1A; | |
2254 public static const int WM_SHOWWINDOW = 0x18; | |
2255 public static const int WM_SIZE = 0x5; | |
2256 public static const int WM_SYSCHAR = 0x106; | |
2257 public static const int WM_SYSCOLORCHANGE = 0x15; | |
2258 public static const int WM_SYSCOMMAND = 0x112; | |
2259 public static const int WM_SYSKEYDOWN = 0x104; | |
2260 public static const int WM_SYSKEYUP = 0x105; | |
2261 public static const int WM_TIMER = 0x113; | |
2262 public static const int WM_THEMECHANGED = 0x031a; | |
2263 public static const int WM_UNDO = 0x304; | |
2264 public static const int WM_UPDATEUISTATE = 0x0128; | |
2265 public static const int WM_USER = 0x400; | |
2266 public static const int WM_VSCROLL = 0x115; | |
2267 public static const int WM_WINDOWPOSCHANGED = 0x47; | |
2268 public static const int WM_WINDOWPOSCHANGING = 0x46; | |
2269 public static const int WS_BORDER = 0x800000; | |
2270 public static const int WS_CAPTION = 0xc00000; | |
2271 public static const int WS_CHILD = 0x40000000; | |
15 | 2272 public static const int WS_MINIMIZE = 0x20000000; //PORTING_TODO: from dwt, why? |
3 | 2273 public static const int WS_CLIPCHILDREN = 0x2000000; |
2274 public static const int WS_CLIPSIBLINGS = 0x4000000; | |
2275 public static const int WS_DISABLED = 0x4000000; | |
213 | 2276 public static const int WS_EX_APPWINDOW = 0x40000; |
3 | 2277 public static const int WS_EX_CAPTIONOKBTN = 0x80000000; |
2278 public static const int WS_EX_CLIENTEDGE = 0x200; | |
213 | 2279 public static const int WS_EX_COMPOSITED = 0x2000000; |
3 | 2280 public static const int WS_EX_DLGMODALFRAME = 0x1; |
2281 public static const int WS_EX_LAYERED = 0x00080000; | |
2282 public static const int WS_EX_LAYOUTRTL = 0x00400000; | |
2283 public static const int WS_EX_LEFTSCROLLBAR = 0x00004000; | |
2284 public static const int WS_EX_MDICHILD = 0x00000040; | |
2285 public static const int WS_EX_NOINHERITLAYOUT = 0x00100000; | |
2286 public static const int WS_EX_NOACTIVATE = 0x08000000; | |
2287 public static const int WS_EX_RIGHT = 0x00001000; | |
2288 public static const int WS_EX_RTLREADING = 0x00002000; | |
2289 public static const int WS_EX_STATICEDGE = 0x20000; | |
2290 public static const int WS_EX_TOOLWINDOW = 0x80; | |
2291 public static const int WS_EX_TOPMOST = 0x8; | |
2292 public static const int WS_EX_TRANSPARENT = 0x20; | |
2293 public static const int WS_HSCROLL = 0x100000; | |
2294 public static const int WS_MAXIMIZEBOX = IsWinCE ? 0x20000 : 0x10000; | |
2295 public static const int WS_MINIMIZEBOX = IsWinCE ? 0x10000 : 0x20000; | |
2296 public static const int WS_OVERLAPPED = IsWinCE ? WS_BORDER | WS_CAPTION : 0x0; | |
2297 public static const int WS_OVERLAPPEDWINDOW = 0xcf0000; | |
2298 public static const int WS_POPUP = 0x80000000; | |
2299 public static const int WS_SYSMENU = 0x80000; | |
2300 public static const int WS_TABSTOP = 0x10000; | |
2301 public static const int WS_THICKFRAME = 0x40000; | |
2302 public static const int WS_VISIBLE = 0x10000000; | |
2303 public static const int WS_VSCROLL = 0x200000; | |
2304 public static const int WM_XBUTTONDOWN = 0x020B; | |
2305 public static const int WM_XBUTTONUP = 0x020C; | |
2306 public static const int WM_XBUTTONDBLCLK = 0x020D; | |
2307 public static const int XBUTTON1 = 0x1; | |
2308 public static const int XBUTTON2 = 0x2; | |
19 | 2309 |
15 | 2310 |
2311 /** Ansi/Unicode wrappers */ | |
2312 // Unicode/Ansi alias | |
2313 version(ANSI) { | |
19 | 2314 alias WINAPI.AddFontResourceExA AddFontResourceEx; |
181 | 2315 alias WINAPI.AssocQueryStringA AssocQueryString; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2316 alias WINAPI.CallWindowProcA CallWindowProc; |
15 | 2317 alias WINAPI.CharLowerA CharLower; |
2318 alias WINAPI.CharUpperA CharUpper; | |
2319 alias WINAPI.ChooseColorA ChooseColor; | |
2320 alias WINAPI.ChooseFontA ChooseFont; | |
2321 alias WINAPI.CreateAcceleratorTableA CreateAcceleratorTable; | |
2322 alias WINAPI.CreateDCA CreateDC; | |
2323 alias WINAPI.CreateEventA CreateEvent; | |
2324 alias WINAPI.CreateFileA CreateFile; | |
2325 alias WINAPI.CreateFontIndirectA CreateFontIndirect; | |
2326 alias WINAPI.CreateWindowExA CreateWindowEx; | |
2327 alias WINAPI.DefFrameProcA DefFrameProc; | |
2328 alias WINAPI.DefMDIChildProcA DefMDIChildProc; | |
2329 alias WINAPI.DefWindowProcA DefWindowProc; | |
2330 alias WINAPI.DeleteFileA DeleteFile; | |
2331 alias WINAPI.DispatchMessageA DispatchMessage; | |
2332 alias WINAPI.DragQueryFileA DragQueryFile; | |
2333 alias WINAPI.DrawStateA DrawState; | |
2334 alias WINAPI.DrawTextA DrawText; | |
2335 alias WINAPI.EnumFontFamiliesExA EnumFontFamiliesEx; | |
2336 alias WINAPI.EnumFontFamiliesA EnumFontFamilies; | |
2337 alias WINAPI.EnumSystemLanguageGroupsA EnumSystemLanguageGroups; | |
2338 alias WINAPI.EnumSystemLocalesA EnumSystemLocales; | |
2339 alias WINAPI.ExpandEnvironmentStringsA ExpandEnvironmentStrings; | |
2340 alias WINAPI.ExtTextOutA ExtTextOut; | |
2341 alias WINAPI.ExtractIconExA ExtractIconEx; | |
2342 alias WINAPI.FindResourceA FindResource; | |
2343 alias WINAPI.FindWindowA FindWindow; | |
2344 alias WINAPI.FormatMessageA FormatMessage; | |
2345 alias WINAPI.GetCharABCWidthsA GetCharABCWidths; | |
2346 alias WINAPI.GetCharWidthA GetCharWidth; | |
2347 alias WINAPI.GetCharacterPlacementA GetCharacterPlacement; | |
2348 alias WINAPI.GetClassInfoA GetClassInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2349 alias WINAPI.GetClassNameA GetClassName; |
15 | 2350 alias WINAPI.GetClipboardFormatNameA GetClipboardFormatName; |
165 | 2351 alias WINAPI.GetDateFormatA GetDateFormat; |
2352 alias WINAPI.GetTimeFormatA GetTimeFormat; | |
15 | 2353 alias WINAPI.GetKeyNameTextA GetKeyNameText; |
2354 alias WINAPI.GetLocaleInfoA GetLocaleInfo; | |
2355 alias WINAPI.GetMenuItemInfoA GetMenuItemInfo; | |
2356 alias WINAPI.GetMessageA GetMessage; | |
2357 alias WINAPI.GetModuleFileNameA GetModuleFileName; | |
2358 alias WINAPI.GetModuleHandleA GetModuleHandle; | |
2359 alias WINAPI.GetMonitorInfoA GetMonitorInfo; | |
2360 alias WINAPI.GetObjectA GetObject; | |
2361 alias WINAPI.GetOpenFileNameA GetOpenFileName; | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2362 alias WINAPI.GetOutlineTextMetricsA GetOutlineTextMetrics; |
15 | 2363 alias WINAPI.GetProfileStringA _GetProfileString; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2364 alias WINAPI.GetPropA GetProp; |
15 | 2365 alias WINAPI.GetSaveFileNameA GetSaveFileName; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2366 alias WINAPI.GetStartupInfoA GetStartupInfo; |
15 | 2367 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32; |
2368 alias WINAPI.GetTextMetricsA GetTextMetrics; | |
2369 alias WINAPI.GetVersionExA GetVersionEx; | |
2370 alias WINAPI.GetWindowLongA GetWindowLong; | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2371 alias WINAPI.GetWindowLongA GetWindowLongPtr; // is a macro |
15 | 2372 alias WINAPI.GetWindowTextA _GetWindowText; |
2373 alias WINAPI.GetWindowTextLengthA GetWindowTextLength; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2374 alias WINAPI.GlobalAddAtomA GlobalAddAtom; |
78 | 2375 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFont; |
2376 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionString; | |
2377 // alias WINAPI.ImmSetCompositionFontA ImmSetCompositionFont; | |
15 | 2378 alias WINAPI.InsertMenuA InsertMenu; |
2379 alias WINAPI.InsertMenuItemA InsertMenuItem; | |
2380 alias WINAPI.LoadBitmapA LoadBitmap; | |
2381 alias WINAPI.LoadCursorA LoadCursor; | |
2382 alias WINAPI.LoadIconA LoadIcon; | |
2383 alias WINAPI.LoadImageA LoadImage; | |
2384 alias WINAPI.LoadLibraryA LoadLibrary; | |
2385 alias WINAPI.LoadStringA LoadString; | |
2386 alias WINAPI.MapVirtualKeyA MapVirtualKey; | |
2387 alias WINAPI.MessageBoxA MessageBox; | |
2388 alias WINAPI.OutputDebugStringA OutputDebugString; | |
2389 alias WINAPI.PeekMessageA PeekMessage; | |
2390 alias WINAPI.PostMessageA PostMessage; | |
2391 alias WINAPI.PostThreadMessageA PostThreadMessage; | |
2392 alias WINAPI.PrintDlgA PrintDlg; | |
2393 alias WINAPI.RegEnumKeyExA RegEnumKeyEx; | |
2394 alias WINAPI.RegOpenKeyExA RegOpenKeyEx; | |
2395 alias WINAPI.RegQueryInfoKeyA RegQueryInfoKey; | |
2396 alias WINAPI.RegQueryValueExA RegQueryValueEx; | |
2397 alias WINAPI.RegisterClassA RegisterClass; | |
2398 alias WINAPI.RegisterClipboardFormatA RegisterClipboardFormat; | |
97 | 2399 alias WINAPI.RegOpenKeyExA RegOpenKeyEx; |
15 | 2400 alias WINAPI.RegisterWindowMessageA RegisterWindowMessage; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2401 alias WINAPI.RemovePropA RemoveProp; |
15 | 2402 alias WINAPI.SHBrowseForFolderA SHBrowseForFolder; |
2403 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDList; | |
2404 alias WINAPI.SendMessageA SendMessage; | |
2405 alias WINAPI.SetMenuItemInfoA SetMenuItemInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2406 alias WINAPI.SetPropA SetProp; |
15 | 2407 alias WINAPI.SetWindowLongA SetWindowLong; |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2408 alias WINAPI.SetWindowLongA SetWindowLongPtr; |
15 | 2409 alias WINAPI.SetWindowTextA SetWindowText; |
2410 alias WINAPI.SetWindowsHookExA SetWindowsHookEx; | |
2411 alias WINAPI.ShellExecuteExA ShellExecuteEx; | |
2412 alias WINAPI.Shell_NotifyIconA Shell_NotifyIcon; | |
2413 alias WINAPI.StartDocA StartDoc; | |
2414 alias WINAPI.SystemParametersInfoA SystemParametersInfo; | |
2415 alias WINAPI.TranslateAcceleratorA TranslateAccelerator; | |
2416 alias WINAPI.UnregisterClassA UnregisterClass; | |
2417 alias WINAPI.VkKeyScanA VkKeyScan; | |
2418 }else{ | |
19 | 2419 alias WINAPI.AddFontResourceExW AddFontResourceEx; |
181 | 2420 alias WINAPI.AssocQueryStringW AssocQueryString; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2421 alias WINAPI.CallWindowProcW CallWindowProc; |
15 | 2422 alias WINAPI.CharLowerW CharLower; |
2423 alias WINAPI.CharUpperW CharUpper; | |
2424 alias WINAPI.ChooseColorW ChooseColor; | |
2425 alias WINAPI.ChooseFontW ChooseFont; | |
2426 alias WINAPI.CreateAcceleratorTableW CreateAcceleratorTable; | |
2427 alias WINAPI.CreateDCW CreateDC; | |
2428 alias WINAPI.CreateEventW CreateEvent; | |
2429 alias WINAPI.CreateFileW CreateFile; | |
2430 alias WINAPI.CreateFontIndirectW CreateFontIndirect; | |
2431 alias WINAPI.CreateWindowExW CreateWindowEx; | |
2432 alias WINAPI.DefFrameProcW DefFrameProc; | |
2433 alias WINAPI.DefMDIChildProcW DefMDIChildProc; | |
2434 alias WINAPI.DefWindowProcW DefWindowProc; | |
2435 alias WINAPI.DeleteFileW DeleteFile; | |
2436 alias WINAPI.DispatchMessageW DispatchMessage; | |
2437 alias WINAPI.DragQueryFileW DragQueryFile; | |
2438 alias WINAPI.DrawStateW DrawState; | |
2439 alias WINAPI.DrawTextW DrawText; | |
2440 alias WINAPI.EnumFontFamiliesExW EnumFontFamiliesEx; | |
2441 alias WINAPI.EnumFontFamiliesW EnumFontFamilies; | |
2442 alias WINAPI.EnumSystemLanguageGroupsW EnumSystemLanguageGroups; | |
2443 alias WINAPI.EnumSystemLocalesW EnumSystemLocales; | |
2444 alias WINAPI.ExpandEnvironmentStringsW ExpandEnvironmentStrings; | |
2445 alias WINAPI.ExtTextOutW ExtTextOut; | |
2446 alias WINAPI.ExtractIconExW ExtractIconEx; | |
2447 alias WINAPI.FindResourceW FindResource; | |
2448 alias WINAPI.FindWindowW FindWindow; | |
2449 alias WINAPI.FormatMessageW FormatMessage; | |
2450 alias WINAPI.GetCharABCWidthsW GetCharABCWidths; | |
2451 alias WINAPI.GetCharWidthW GetCharWidth; | |
2452 alias WINAPI.GetCharacterPlacementW GetCharacterPlacement; | |
2453 alias WINAPI.GetClassInfoW GetClassInfo; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2454 alias WINAPI.GetClassNameW GetClassName; |
15 | 2455 alias WINAPI.GetClipboardFormatNameW GetClipboardFormatName; |
165 | 2456 alias WINAPI.GetDateFormatW GetDateFormat; |
2457 alias WINAPI.GetTimeFormatW GetTimeFormat; | |
15 | 2458 alias WINAPI.GetKeyNameTextW GetKeyNameText; |
2459 alias WINAPI.GetLocaleInfoW GetLocaleInfo; | |
2460 alias WINAPI.GetMenuItemInfoW GetMenuItemInfo; | |
2461 alias WINAPI.GetMessageW GetMessage; | |
2462 alias WINAPI.GetModuleFileNameW GetModuleFileName; | |
2463 alias WINAPI.GetModuleHandleW GetModuleHandle; | |
2464 alias WINAPI.GetMonitorInfoW GetMonitorInfo; | |
2465 alias WINAPI.GetObjectW GetObject; | |
2466 alias WINAPI.GetOpenFileNameW GetOpenFileName; | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2467 alias WINAPI.GetOutlineTextMetricsW GetOutlineTextMetrics; |
15 | 2468 alias WINAPI.GetProfileStringW _GetProfileString; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2469 alias WINAPI.GetPropW GetProp; |
15 | 2470 alias WINAPI.GetSaveFileNameW GetSaveFileName; |
190 | 2471 alias WINAPI.CreateProcessW CreateProcess; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2472 alias WINAPI.GetStartupInfoW GetStartupInfo; |
15 | 2473 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32; |
2474 alias WINAPI.GetTextMetricsW GetTextMetrics; | |
2475 alias WINAPI.GetVersionExW GetVersionEx; | |
2476 alias WINAPI.GetWindowLongW GetWindowLong; | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2477 alias WINAPI.GetWindowLongW GetWindowLongPtr; // is a macro |
15 | 2478 alias WINAPI.GetWindowTextW _GetWindowText; |
2479 alias WINAPI.GetWindowTextLengthW GetWindowTextLength; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2480 alias WINAPI.GlobalAddAtomW GlobalAddAtom; |
78 | 2481 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFont; |
2482 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionString; | |
2483 // alias WINAPI.ImmSetCompositionFontW ImmSetCompositionFont; | |
15 | 2484 alias WINAPI.InsertMenuW InsertMenu; |
2485 alias WINAPI.InsertMenuItemW InsertMenuItem; | |
2486 alias WINAPI.LoadBitmapW LoadBitmap; | |
2487 alias WINAPI.LoadCursorW LoadCursor; | |
2488 alias WINAPI.LoadIconW LoadIcon; | |
2489 alias WINAPI.LoadImageW LoadImage; | |
2490 alias WINAPI.LoadLibraryW LoadLibrary; | |
2491 alias WINAPI.LoadStringW LoadString; | |
2492 alias WINAPI.MapVirtualKeyW MapVirtualKey; | |
2493 alias WINAPI.MessageBoxW MessageBox; | |
2494 alias WINAPI.OutputDebugStringW OutputDebugString; | |
2495 alias WINAPI.PeekMessageW PeekMessage; | |
2496 alias WINAPI.PostMessageW PostMessage; | |
2497 alias WINAPI.PostThreadMessageW PostThreadMessage; | |
2498 alias WINAPI.PrintDlgW PrintDlg; | |
2499 alias WINAPI.RegEnumKeyExW RegEnumKeyEx; | |
2500 alias WINAPI.RegOpenKeyExW RegOpenKeyEx; | |
2501 alias WINAPI.RegQueryInfoKeyW RegQueryInfoKey; | |
2502 alias WINAPI.RegQueryValueExW RegQueryValueEx; | |
2503 alias WINAPI.RegisterClassW RegisterClass; | |
2504 alias WINAPI.RegisterClipboardFormatW RegisterClipboardFormat; | |
97 | 2505 alias WINAPI.RegOpenKeyExW RegOpenKeyEx; |
15 | 2506 alias WINAPI.RegisterWindowMessageW RegisterWindowMessage; |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2507 alias WINAPI.RemovePropW RemoveProp; |
15 | 2508 alias WINAPI.SHBrowseForFolderW SHBrowseForFolder; |
2509 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDList; | |
2510 alias WINAPI.SendMessageW SendMessage; | |
2511 alias WINAPI.SetMenuItemInfoW SetMenuItemInfo; | |
2512 alias WINAPI.SetWindowLongW SetWindowLong; | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2513 alias WINAPI.SetWindowLongW SetWindowLongPtr; |
15 | 2514 alias WINAPI.SetWindowTextW SetWindowText; |
2515 alias WINAPI.SetWindowsHookExW SetWindowsHookEx; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2516 alias WINAPI.SetPropW SetProp; |
15 | 2517 alias WINAPI.ShellExecuteExW ShellExecuteEx; |
2518 alias WINAPI.Shell_NotifyIconW Shell_NotifyIcon; | |
2519 alias WINAPI.StartDocW StartDoc; | |
2520 alias WINAPI.SystemParametersInfoW SystemParametersInfo; | |
2521 alias WINAPI.TranslateAcceleratorW TranslateAccelerator; | |
2522 alias WINAPI.UnregisterClassW UnregisterClass; | |
2523 alias WINAPI.VkKeyScanW VkKeyScan; | |
3 | 2524 } |
19 | 2525 |
2526 | |
2527 | |
2528 | |
78 | 2529 // ---------------------------------------------------------------------------- |
2530 // UxTheme dummies until dynamic loading is in place. | |
2531 // ---------------------------------------------------------------------------- | |
79 | 2532 public static extern(Windows) { |
2533 BOOL function ( | |
2534 ) IsAppThemed; | |
2535 | |
2536 HRESULT function( | |
78 | 2537 HTHEME hTheme, |
2538 HDC hdc, | |
2539 int iPartId, | |
2540 int iStateId, | |
2541 RECT *pRect, | |
2542 RECT *pClipRect | |
79 | 2543 ) DrawThemeBackground; |
2544 | |
2545 HRESULT function( | |
78 | 2546 HTHEME hTheme, |
2547 HDC hdc, | |
2548 int iPartId, | |
2549 int iStateId, | |
2550 LPCRECT pDestRect, | |
2551 UINT uEdge, | |
2552 UINT uFlags, | |
2553 LPRECT pContentRect | |
79 | 2554 ) DrawThemeEdge; |
2555 | |
2556 HRESULT function( | |
78 | 2557 HTHEME hTheme, |
2558 HDC hdc, | |
2559 int iPartId, | |
2560 int iStateId, | |
2561 LPCRECT pRect, | |
2562 HIMAGELIST himl, | |
2563 int iImageIndex | |
79 | 2564 ) DrawThemeIcon; |
2565 | |
2566 HRESULT function( | |
78 | 2567 HWND hwnd, |
2568 HDC hdc, | |
2569 RECT *prc | |
79 | 2570 ) DrawThemeParentBackground; |
2571 | |
2572 HRESULT function( | |
78 | 2573 HTHEME hTheme, |
2574 HDC hdc, | |
2575 int iPartId, | |
2576 int iStateId, | |
2577 LPCWSTR pszText, | |
2578 int iCharCount, | |
2579 DWORD dwTextFlags, | |
2580 DWORD dwTextFlags2, | |
2581 LPCRECT pRect | |
79 | 2582 ) DrawThemeText; |
2583 | |
2584 HTHEME function( | |
78 | 2585 HWND hwnd, |
2586 LPCWSTR pszClassList | |
79 | 2587 ) OpenThemeData; |
2588 | |
2589 HRESULT function( | |
2590 )BufferedPaintInit; | |
2591 | |
2592 HRESULT function( | |
78 | 2593 HTHEME hTheme |
79 | 2594 ) CloseThemeData; |
2595 | |
2596 HRESULT function( | |
2597 ) BufferedPaintUnInit; | |
2598 | |
2599 HPAINTBUFFER function( | |
78 | 2600 HDC hdcTarget, |
2601 RECT *prcTarget, | |
2602 uint/+BP_BUFFERFORMAT+/ dwFormat, | |
2603 void*/+BP_PAINTPARAMS+/ pPaintParams, | |
2604 HDC *phdc | |
79 | 2605 ) BeginBufferedPaint; |
2606 | |
2607 HRESULT function( | |
78 | 2608 HPAINTBUFFER hBufferedPaint, |
2609 BOOL fUpdateTarget | |
79 | 2610 ) EndBufferedPaint; |
2611 | |
2612 HRESULT function( | |
78 | 2613 HTHEME hTheme, |
2614 HDC hdc, | |
2615 int iPartId, | |
2616 int iStateId, | |
2617 LPCWSTR pszText, | |
2618 int iCharCount, | |
2619 DWORD dwTextFlags, | |
2620 LPCRECT pBoundingRect, | |
2621 LPRECT pExtentRect | |
79 | 2622 ) GetThemeTextExtent; |
2623 | |
2624 HRESULT function( | |
78 | 2625 HWND hwnd, |
2626 LPCWSTR pszSubAppName, | |
2627 LPCWSTR pszSubIdList | |
79 | 2628 ) SetWindowTheme; |
2629 | |
2630 } // public static | |
2631 | |
2632 static Symbol[] Symbols_UxTheme = [ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2633 { "IsAppThemed", cast(void**)& IsAppThemed, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2634 { "DrawThemeBackground", cast(void**)& DrawThemeBackground, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2635 { "DrawThemeEdge", cast(void**)& DrawThemeEdge, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2636 { "DrawThemeIcon", cast(void**)& DrawThemeIcon, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2637 { "DrawThemeParentBackground", cast(void**)& DrawThemeParentBackground, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2638 { "DrawThemeText", cast(void**)& DrawThemeText, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2639 { "OpenThemeData", cast(void**)& OpenThemeData, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2640 { "CloseThemeData", cast(void**)& CloseThemeData, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2641 { "GetThemeTextExtent", cast(void**)& GetThemeTextExtent, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2642 { "SetWindowTheme", cast(void**)& SetWindowTheme, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2643 { "BufferedPaintUnInit", cast(void**)& BufferedPaintUnInit, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2644 { "BufferedPaintInit", cast(void**)& BufferedPaintInit, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2645 { "BeginBufferedPaint", cast(void**)& BeginBufferedPaint, 6, 0 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2646 { "EndBufferedPaint", cast(void**)& EndBufferedPaint, 6, 0 }, |
79 | 2647 ]; |
2648 | |
2649 static void loadLib_UxTheme(){ | |
2650 if (auto lib = SharedLib.load(`uxtheme.dll`)) { | |
2651 foreach( inout s; Symbols_UxTheme ){ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2652 if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2653 *s.symbol = lib.getSymbol( s.name.ptr ); |
163 | 2654 if( *s.symbol is null ){ |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2655 Trace.formatln("UxTheme.dll: Symbol '{}' not found", s.name ); |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2656 } |
79 | 2657 } |
2658 } | |
2659 } else { | |
2660 Trace.formatln("Could not load the library UxTheme.dll"); | |
78 | 2661 } |
79 | 2662 } |
78 | 2663 //---------------------------------------------------------------------- |
2664 // Coreimm.lib (WinCE) | |
79 | 2665 // this function vars exist primarily for link error elimination |
78 | 2666 //---------------------------------------------------------------------- |
2667 public static extern(Windows) { | |
213 | 2668 |
2669 BOOL function( | |
2670 HIMC hIMC, | |
2671 LPCANDIDATEFORM lpCandidate | |
2672 ) ImmSetCandidateWindow; | |
2673 | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2674 BOOL function( |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2675 HWND hwnd, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2676 COLORREF *pcrKey, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2677 BYTE *pbAlpha, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2678 DWORD *pdwFlags |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2679 )GetLayeredWindowAttributes; |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2680 |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2681 BOOL function( |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2682 HWND hwnd, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2683 COLORREF crKey, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2684 BYTE bAlpha, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2685 DWORD dwFlags |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2686 )SetLayeredWindowAttributes; |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2687 |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2688 BOOL function( |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2689 HWND hwnd, // Window to copy |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2690 HDC hdcBlt, // HDC to print into |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2691 UINT nFlags // Optional flags |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2692 ) PrintWindow; |
79 | 2693 } // public static extern(Windows) |
2694 | |
213 | 2695 |
79 | 2696 static Symbol[] Symbols_CoreImm = [ |
2697 ]; | |
2698 | |
82 | 2699 // user32.dll vista |
2700 public static extern(Windows) BOOL function() SetProcessDPIAware; | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2701 static Symbol[] Symbols_User32 = [ |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2702 { "SetProcessDPIAware", cast(void**)& SetProcessDPIAware, 6, 0 }, |
213 | 2703 { "ImmSetCandidateWindow", cast(void**)& ImmSetCandidateWindow, 6, 0 }, |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2704 { "GetLayeredWindowAttributes", cast(void**)& GetLayeredWindowAttributes, 5, 1 }, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2705 { "SetLayeredWindowAttributes", cast(void**)& SetLayeredWindowAttributes, 5, 0 }, |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
2706 { "PrintWindow", cast(void**)& PrintWindow, 5, 0 }, |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2707 ]; |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2708 |
82 | 2709 // Imm32.lib |
94 | 2710 public static extern(Windows) { |
2711 HIMC function( HWND hWnd ) ImmGetContext; | |
2712 BOOL function( DWORD idThread ) ImmDisableTextFrameService; | |
2713 HIMC function( HWND hWnd, HIMC hIMC ) ImmAssociateContext; | |
2714 | |
2715 HIMC function() ImmCreateContext; | |
2716 int function( HIMC hIMC ) ImmDestroyContext; | |
2717 BOOL function( HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence ) ImmGetConversionStatus; | |
2718 HWND function( HWND hWnd ) ImmGetDefaultIMEWnd; | |
2719 BOOL function( HIMC hIMC ) ImmGetOpenStatus; | |
2720 BOOL function( HWND hWnd, HIMC hIMC ) ImmReleaseContext; | |
2721 version(ANSI) { | |
2722 BOOL function( HIMC hIMC, LOGFONTA* lplf ) ImmSetCompositionFont; | |
2723 LONG function( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen ) ImmGetCompositionString; | |
2724 BOOL function( HIMC hIMC, LPLOGFONTA lplf ) ImmGetCompositionFont; | |
2725 | |
2726 } else { | |
2727 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmSetCompositionFont; | |
2728 LONG function( HIMC hIMC, DWORD dwIndex, LPVOID lpBuf, DWORD dwBufLen ) ImmGetCompositionString; | |
2729 BOOL function( HIMC hIMC, LOGFONTW* lplf ) ImmGetCompositionFont; | |
2730 } | |
2731 BOOL function( HIMC hIMC, LPCOMPOSITIONFORM lpCompForm ) ImmSetCompositionWindow; | |
2732 BOOL function( HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence ) ImmSetConversionStatus; | |
2733 BOOL function( HIMC hIMC, BOOL fOpen ) ImmSetOpenStatus; | |
213 | 2734 BOOL function( |
2735 HIMC hIMC, | |
2736 DWORD dwAction, | |
2737 DWORD dwIndex, | |
2738 DWORD dwValue | |
2739 )ImmNotifyIME; | |
2740 | |
2741 LONG function( | |
2742 HIMC hIMC, | |
2743 DWORD dwIndex, | |
2744 LPVOID lpBuf, | |
2745 DWORD dwBufLen | |
2746 ) ImmGetCompositionStringA; | |
2747 | |
2748 LONG function( | |
2749 HIMC hIMC, | |
2750 DWORD dwIndex, | |
2751 LPVOID lpBuf, | |
2752 DWORD dwBufLen | |
2753 ) ImmGetCompositionStringW; | |
94 | 2754 } |
2755 | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2756 static Symbol[] Symbols_Imm32 = [ |
94 | 2757 { "ImmAssociateContext", cast(void**)& ImmAssociateContext, 5, 1 }, |
2758 { "ImmCreateContext", cast(void**)& ImmCreateContext, 5, 1 }, | |
2759 { "ImmDestroyContext", cast(void**)& ImmDestroyContext, 5, 1 }, | |
2760 { "ImmGetContext", cast(void**)& ImmGetContext, 5, 1 }, | |
2761 { "ImmGetConversionStatus", cast(void**)& ImmGetConversionStatus, 5, 1 }, | |
2762 { "ImmGetDefaultIMEWnd", cast(void**)& ImmGetDefaultIMEWnd, 5, 1 }, | |
2763 { "ImmGetOpenStatus", cast(void**)& ImmGetOpenStatus, 5, 1 }, | |
2764 { "ImmReleaseContext", cast(void**)& ImmReleaseContext, 5, 1 }, | |
2765 { "ImmSetCompositionFontW", cast(void**)& ImmSetCompositionFont, 5, 1 }, | |
2766 { "ImmGetCompositionStringW", cast(void**)& ImmGetCompositionString, 5, 1 }, | |
2767 { "ImmGetCompositionFontW", cast(void**)& ImmGetCompositionFont, 5, 1 }, | |
2768 { "ImmSetCompositionWindow", cast(void**)& ImmSetCompositionWindow, 5, 1 }, | |
2769 { "ImmSetConversionStatus", cast(void**)& ImmSetConversionStatus, 5, 1 }, | |
2770 { "ImmSetOpenStatus", cast(void**)& ImmSetOpenStatus, 5, 1 }, | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2771 { "ImmDisableTextFrameService", cast(void**)& ImmDisableTextFrameService, 5, 1 }, |
213 | 2772 { "ImmNotifyIME", cast(void**)& ImmNotifyIME, 5, 1 }, |
2773 { "ImmGetCompositionStringW", cast(void**)& ImmGetCompositionStringW, 5, 1 }, | |
2774 { "ImmGetCompositionStringA", cast(void**)& ImmGetCompositionStringA, 5, 1 }, | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2775 ]; |
82 | 2776 |
2777 // kernel32 winxp/vista | |
2778 public static extern(Windows) { | |
2779 HANDLE function( ACTCTX* pActCtx ) CreateActCtx; | |
2780 BOOL function( HACTCTX hActCtx, uint* lpCookie ) ActivateActCtx; | |
2781 } | |
92 | 2782 version(ANSI){ |
2783 }else{ | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2784 static Symbol[] Symbols_Kernel32 = [ |
92 | 2785 { "CreateActCtxW", cast(void**)& CreateActCtx, 5, 1 }, |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2786 { "ActivateActCtx", cast(void**)& ActivateActCtx, 5, 1 }, |
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2787 ]; |
92 | 2788 } |
2789 | |
90
be0b130bb29a
activated loading of delayed libs
Frank Benoit <benoit@tionex.de>
parents:
89
diff
changeset
|
2790 |
78 | 2791 //------------------------------------------------------------------------ |
15 | 2792 /** All Natives */ |
2793 alias WINAPI.AbortDoc AbortDoc; | |
2794 alias WINAPI.ActivateKeyboardLayout ActivateKeyboardLayout; | |
2795 alias WINAPI.AdjustWindowRectEx AdjustWindowRectEx; | |
24 | 2796 alias WINAPI.AlphaBlend AlphaBlend; |
15 | 2797 alias WINAPI.Arc Arc; |
2798 alias WINAPI.BeginDeferWindowPos BeginDeferWindowPos; | |
2799 alias WINAPI.BeginPaint BeginPaint; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2800 alias WINAPI.BeginPath BeginPath; |
15 | 2801 alias WINAPI.BitBlt BitBlt; |
2802 alias WINAPI.BringWindowToTop BringWindowToTop; | |
2803 alias WINAPI.CallNextHookEx CallNextHookEx; | |
2804 alias WINAPI.CallWindowProcA CallWindowProcA; | |
2805 alias WINAPI.CallWindowProcW CallWindowProcW; | |
2806 alias WINAPI.CharLowerA CharLowerA; | |
2807 alias WINAPI.CharLowerW CharLowerW; | |
2808 alias WINAPI.CharUpperA CharUpperA; | |
2809 alias WINAPI.CharUpperW CharUpperW; | |
2810 alias WINAPI.CheckMenuItem CheckMenuItem; | |
2811 alias WINAPI.ChooseColorA ChooseColorA; | |
2812 alias WINAPI.ChooseColorW ChooseColorW; | |
2813 alias WINAPI.ChooseFontA ChooseFontA; | |
2814 alias WINAPI.ChooseFontW ChooseFontW; | |
2815 alias WINAPI.ClientToScreen ClientToScreen; | |
2816 alias WINAPI.CloseHandle CloseHandle; | |
2817 alias WINAPI.CloseClipboard CloseClipboard; | |
2818 alias WINAPI.CombineRgn CombineRgn; | |
2819 alias WINAPI.CommDlgExtendedError CommDlgExtendedError; | |
2820 | |
2821 version(WinCE){ | |
2822 alias WINAPI.CommandBar_AddAdornments CommandBar_AddAdornments; | |
2823 alias WINAPI.CommandBar_Create CommandBar_Create; | |
2824 alias WINAPI.CommandBar_Destroy CommandBar_Destroy; | |
2825 alias WINAPI.CommandBar_DrawMenuBar CommandBar_DrawMenuBar; | |
2826 alias WINAPI.CommandBar_Height CommandBar_Height; | |
2827 alias WINAPI.CommandBar_InsertMenubarEx CommandBar_InsertMenubarEx; | |
2828 alias WINAPI.CommandBar_Show CommandBar_Show; | |
2829 } | |
2830 | |
2831 alias WINAPI.CopyImage CopyImage; | |
2832 alias WINAPI.CreateAcceleratorTableA CreateAcceleratorTableA; | |
2833 alias WINAPI.CreateAcceleratorTableW CreateAcceleratorTableW; | |
2834 alias WINAPI.CreateBitmap CreateBitmap; | |
2835 alias WINAPI.CreateCaret CreateCaret; | |
2836 alias WINAPI.CreateCompatibleBitmap CreateCompatibleBitmap; | |
2837 alias WINAPI.CreateCompatibleDC CreateCompatibleDC; | |
2838 alias WINAPI.CreateCursor CreateCursor; | |
2839 alias WINAPI.CreateDCA CreateDCA; | |
2840 alias WINAPI.CreateDCW CreateDCW; | |
2841 alias WINAPI.CreateDIBSection CreateDIBSection; | |
2842 alias WINAPI.CreateEventA CreateEventA; | |
2843 alias WINAPI.CreateEventW CreateEventW; | |
2844 alias WINAPI.CreateFileA CreateFileA; | |
2845 alias WINAPI.CreateFileW CreateFileW; | |
2846 alias WINAPI.CreateFontIndirectA CreateFontIndirectA; | |
2847 alias WINAPI.CreateFontIndirectW CreateFontIndirectW; | |
2848 alias WINAPI.CreateIconIndirect CreateIconIndirect; | |
2849 alias WINAPI.CreateMenu CreateMenu; | |
2850 alias WINAPI.CreatePalette CreatePalette; | |
2851 alias WINAPI.CreatePatternBrush CreatePatternBrush; | |
2852 alias WINAPI.CreatePen CreatePen; | |
2853 alias WINAPI.CreatePolygonRgn CreatePolygonRgn; | |
2854 alias WINAPI.CreatePopupMenu CreatePopupMenu; | |
2855 alias WINAPI.CreateRectRgn CreateRectRgn; | |
2856 alias WINAPI.CreateSolidBrush CreateSolidBrush; | |
2857 alias WINAPI.CreateWindowExA CreateWindowExA; | |
2858 alias WINAPI.CreateWindowExW CreateWindowExW; | |
2859 alias WINAPI.DefFrameProcA DefFrameProcA; | |
2860 alias WINAPI.DefFrameProcW DefFrameProcW; | |
2861 alias WINAPI.DefMDIChildProcA DefMDIChildProcA; | |
2862 alias WINAPI.DefMDIChildProcW DefMDIChildProcW; | |
2863 alias WINAPI.DefWindowProcA DefWindowProcA; | |
2864 alias WINAPI.DefWindowProcW DefWindowProcW; | |
2865 alias WINAPI.DeferWindowPos DeferWindowPos; | |
2866 alias WINAPI.DeleteDC DeleteDC; | |
2867 alias WINAPI.DeleteMenu DeleteMenu; | |
2868 alias WINAPI.DeleteObject DeleteObject; | |
2869 alias WINAPI.DestroyAcceleratorTable DestroyAcceleratorTable; | |
2870 alias WINAPI.DestroyCaret DestroyCaret; | |
2871 alias WINAPI.DestroyCursor DestroyCursor; | |
2872 alias WINAPI.DestroyIcon DestroyIcon; | |
2873 alias WINAPI.DestroyMenu DestroyMenu; | |
2874 alias WINAPI.DestroyWindow DestroyWindow; | |
2875 alias WINAPI.DispatchMessageA DispatchMessageA; | |
2876 alias WINAPI.DispatchMessageW DispatchMessageW; | |
2877 alias WINAPI.DragDetect DragDetect; | |
2878 alias WINAPI.DragFinish DragFinish; | |
2879 alias WINAPI.DragQueryFileA DragQueryFileA; | |
2880 alias WINAPI.DragQueryFileW DragQueryFileW; | |
2881 alias WINAPI.DrawEdge DrawEdge; | |
2882 alias WINAPI.DrawFocusRect DrawFocusRect; | |
2883 alias WINAPI.DrawFrameControl DrawFrameControl; | |
2884 alias WINAPI.DrawIconEx DrawIconEx; | |
2885 alias WINAPI.DrawMenuBar DrawMenuBar; | |
2886 alias WINAPI.DrawStateA DrawStateA; | |
2887 alias WINAPI.DrawStateW DrawStateW; | |
2888 alias WINAPI.DrawTextA DrawTextA; | |
2889 alias WINAPI.DrawTextW DrawTextW; | |
2890 alias WINAPI.Ellipse Ellipse; | |
2891 alias WINAPI.EnableMenuItem EnableMenuItem; | |
2892 alias WINAPI.EnableScrollBar EnableScrollBar; | |
2893 alias WINAPI.EnableWindow EnableWindow; | |
2894 alias WINAPI.EndDeferWindowPos EndDeferWindowPos; | |
2895 alias WINAPI.EndDoc EndDoc; | |
2896 alias WINAPI.EndPage EndPage; | |
2897 alias WINAPI.EndPaint EndPaint; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2898 alias WINAPI.EndPath EndPath; |
15 | 2899 alias WINAPI.EnumDisplayMonitors EnumDisplayMonitors; |
2900 alias WINAPI.EnumFontFamiliesA EnumFontFamiliesA; | |
2901 alias WINAPI.EnumFontFamiliesExA EnumFontFamiliesExA; | |
2902 alias WINAPI.EnumFontFamiliesExW EnumFontFamiliesExW; | |
2903 alias WINAPI.EnumFontFamiliesW EnumFontFamiliesW; | |
2904 alias WINAPI.EnumSystemLanguageGroupsA EnumSystemLanguageGroupsA; | |
2905 alias WINAPI.EnumSystemLanguageGroupsW EnumSystemLanguageGroupsW; | |
2906 alias WINAPI.EnumSystemLocalesA EnumSystemLocalesA; | |
2907 alias WINAPI.EnumSystemLocalesW EnumSystemLocalesW; | |
2908 alias WINAPI.EqualRect EqualRect; | |
2909 alias WINAPI.EqualRgn EqualRgn; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2910 alias WINAPI.ExcludeClipRect ExcludeClipRect; |
15 | 2911 alias WINAPI.ExpandEnvironmentStringsA ExpandEnvironmentStringsA; |
2912 alias WINAPI.ExpandEnvironmentStringsW ExpandEnvironmentStringsW; | |
2913 alias WINAPI.ExtTextOutA ExtTextOutA; | |
2914 alias WINAPI.ExtTextOutW ExtTextOutW; | |
2915 alias WINAPI.ExtractIconExA ExtractIconExA; | |
2916 alias WINAPI.ExtractIconExW ExtractIconExW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2917 alias WINAPI.ExtCreatePen ExtCreatePen; |
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2918 alias WINAPI.ExtCreateRegion ExtCreateRegion; |
15 | 2919 alias WINAPI.FillRect FillRect; |
2920 alias WINAPI.FindResourceA FindResourceA; | |
2921 alias WINAPI.FindResourceW FindResourceW; | |
2922 alias WINAPI.FindWindowA FindWindowA; | |
2923 alias WINAPI.FindWindowW FindWindowW; | |
2924 alias WINAPI.FormatMessageA FormatMessageA; | |
2925 alias WINAPI.FormatMessageW FormatMessageW; | |
2926 alias WINAPI.FreeLibrary FreeLibrary; | |
2927 alias WINAPI.GdiSetBatchLimit GdiSetBatchLimit; | |
2928 alias WINAPI.GetACP GetACP; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2929 alias WINAPI.GetAsyncKeyState GetAsyncKeyState; |
15 | 2930 alias WINAPI.GetActiveWindow GetActiveWindow; |
2931 alias WINAPI.GetBkColor GetBkColor; | |
2932 alias WINAPI.GetCapture GetCapture; | |
2933 alias WINAPI.GetCaretPos GetCaretPos; | |
2934 alias WINAPI.GetCharABCWidthsA GetCharABCWidthsA; | |
2935 alias WINAPI.GetCharABCWidthsW GetCharABCWidthsW; | |
2936 alias WINAPI.GetCharWidthA GetCharWidthA; | |
2937 alias WINAPI.GetCharWidthW GetCharWidthW; | |
2938 alias WINAPI.GetCharacterPlacementA GetCharacterPlacementA; | |
2939 alias WINAPI.GetCharacterPlacementW GetCharacterPlacementW; | |
2940 alias WINAPI.GetClassInfoA GetClassInfoA; | |
2941 alias WINAPI.GetClassInfoW GetClassInfoW; | |
2942 alias WINAPI.GetClientRect GetClientRect; | |
2943 alias WINAPI.GetClipBox GetClipBox; | |
2944 alias WINAPI.GetClipRgn GetClipRgn; | |
2945 alias WINAPI.GetClipboardData GetClipboardData; | |
2946 alias WINAPI.GetClipboardFormatNameA GetClipboardFormatNameA; | |
2947 alias WINAPI.GetClipboardFormatNameW GetClipboardFormatNameW; | |
2948 alias WINAPI.GetComboBoxInfo GetComboBoxInfo; | |
2949 alias WINAPI.GetCurrentObject GetCurrentObject; | |
2950 alias WINAPI.GetCurrentProcessId GetCurrentProcessId; | |
2951 alias WINAPI.GetCurrentThreadId GetCurrentThreadId; | |
2952 alias WINAPI.GetCursor GetCursor; | |
2953 alias WINAPI.GetCursorPos GetCursorPos; | |
2954 alias WINAPI.GetDC GetDC; | |
2955 alias WINAPI.GetDCEx GetDCEx; | |
2956 alias WINAPI.GetDIBColorTable GetDIBColorTable; | |
2957 alias WINAPI.GetDIBits GetDIBits; | |
2958 alias WINAPI.GetDesktopWindow GetDesktopWindow; | |
2959 alias WINAPI.GetDeviceCaps GetDeviceCaps; | |
2960 alias WINAPI.GetDialogBaseUnits GetDialogBaseUnits; | |
2961 alias WINAPI.GetDlgItem GetDlgItem; | |
2962 alias WINAPI.GetDoubleClickTime GetDoubleClickTime; | |
2963 alias WINAPI.GetFocus GetFocus; | |
2964 alias WINAPI.GetFontLanguageInfo GetFontLanguageInfo; | |
2965 alias WINAPI.GetGUIThreadInfo GetGUIThreadInfo; | |
2966 alias WINAPI.GetIconInfo GetIconInfo; | |
2967 alias WINAPI.GetKeyNameTextA GetKeyNameTextA; | |
2968 alias WINAPI.GetKeyNameTextW GetKeyNameTextW; | |
2969 alias WINAPI.GetKeyState GetKeyState; | |
2970 alias WINAPI.GetKeyboardLayout GetKeyboardLayout; | |
2971 alias WINAPI.GetKeyboardLayoutList GetKeyboardLayoutList; | |
2972 alias WINAPI.GetKeyboardState GetKeyboardState; | |
2973 alias WINAPI.GetLastActivePopup GetLastActivePopup; | |
2974 alias WINAPI.GetLastError GetLastError; | |
2975 alias WINAPI.GetLayout GetLayout; | |
2976 alias WINAPI.GetLocaleInfoA GetLocaleInfoA; | |
2977 alias WINAPI.GetLocaleInfoW GetLocaleInfoW; | |
2978 alias WINAPI.GetMenu GetMenu; | |
2979 alias WINAPI.GetMenuBarInfo GetMenuBarInfo; | |
2980 alias WINAPI.GetMenuDefaultItem GetMenuDefaultItem; | |
2981 alias WINAPI.GetMenuInfo GetMenuInfo; | |
2982 alias WINAPI.GetMenuItemCount GetMenuItemCount; | |
2983 alias WINAPI.GetMenuItemInfoA GetMenuItemInfoA; | |
2984 alias WINAPI.GetMenuItemInfoW GetMenuItemInfoW; | |
2985 alias WINAPI.GetMenuItemRect GetMenuItemRect; | |
2986 alias WINAPI.GetMessageA GetMessageA; | |
2987 alias WINAPI.GetMessagePos GetMessagePos; | |
2988 alias WINAPI.GetMessageTime GetMessageTime; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2989 alias WINAPI.GetMetaRgn GetMetaRgn; |
15 | 2990 alias WINAPI.GetMessageW GetMessageW; |
2991 alias WINAPI.GetModuleFileNameA GetModuleFileNameA; | |
2992 alias WINAPI.GetModuleFileNameW GetModuleFileNameW; | |
2993 alias WINAPI.GetModuleHandleA GetModuleHandleA; | |
2994 alias WINAPI.GetModuleHandleW GetModuleHandleW; | |
2995 alias WINAPI.GetMonitorInfoA GetMonitorInfoA; | |
2996 alias WINAPI.GetMonitorInfoW GetMonitorInfoW; | |
2997 alias WINAPI.GetNearestPaletteIndex GetNearestPaletteIndex; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
2998 alias WINAPI.GetPath GetPath; |
15 | 2999 alias WINAPI.GetObjectA GetObjectA; |
3000 alias WINAPI.GetObjectW GetObjectW; | |
3001 alias WINAPI.GetOpenFileNameA GetOpenFileNameA; | |
3002 alias WINAPI.GetOpenFileNameW GetOpenFileNameW; | |
3003 alias WINAPI.GetPaletteEntries GetPaletteEntries; | |
3004 alias WINAPI.GetParent GetParent; | |
3005 alias WINAPI.GetPixel GetPixel; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3006 alias WINAPI.GetPolyFillMode GetPolyFillMode; |
15 | 3007 alias WINAPI.GetProcAddress GetProcAddress; |
3008 alias WINAPI.GetProcessHeap GetProcessHeap; | |
3009 alias WINAPI.GetProfileStringA GetProfileStringA; | |
3010 alias WINAPI.GetProfileStringW GetProfileStringW; | |
3011 alias WINAPI.GetROP2 GetROP2; | |
3012 alias WINAPI.GetRandomRgn GetRandomRgn; | |
3013 alias WINAPI.GetRegionData GetRegionData; | |
3014 alias WINAPI.GetRgnBox GetRgnBox; | |
3015 alias WINAPI.GetSaveFileNameA GetSaveFileNameA; | |
3016 alias WINAPI.GetSaveFileNameW GetSaveFileNameW; | |
3017 alias WINAPI.GetScrollInfo GetScrollInfo; | |
3018 alias WINAPI.GetStockObject GetStockObject; | |
3019 alias WINAPI.GetSysColor GetSysColor; | |
3020 alias WINAPI.GetSysColorBrush GetSysColorBrush; | |
38 | 3021 alias WINAPI.GetSystemDefaultUILanguage GetSystemDefaultUILanguage; |
15 | 3022 alias WINAPI.GetSystemMenu GetSystemMenu; |
3023 alias WINAPI.GetSystemMetrics GetSystemMetrics; | |
3024 alias WINAPI.GetSystemPaletteEntries GetSystemPaletteEntries; | |
3025 alias WINAPI.GetTextCharset GetTextCharset; | |
3026 alias WINAPI.GetTextColor GetTextColor; | |
3027 alias WINAPI.GetTextExtentPoint32A GetTextExtentPoint32A; | |
3028 alias WINAPI.GetTextExtentPoint32W GetTextExtentPoint32W; | |
3029 alias WINAPI.GetTextMetricsA GetTextMetricsA; | |
3030 alias WINAPI.GetTextMetricsW GetTextMetricsW; | |
3031 alias WINAPI.GetTickCount GetTickCount; | |
3032 alias WINAPI.GetUpdateRect GetUpdateRect; | |
3033 alias WINAPI.GetUpdateRgn GetUpdateRgn; | |
3034 alias WINAPI.GetVersion GetVersion; | |
3035 alias WINAPI.GetVersionExA GetVersionExA; | |
3036 alias WINAPI.GetVersionExW GetVersionExW; | |
3037 alias WINAPI.GetWindow GetWindow; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3038 alias WINAPI.GetWindowDC GetWindowDC; |
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3039 alias WINAPI.GetWindowOrgEx GetWindowOrgEx; |
15 | 3040 alias WINAPI.GetWindowLongA GetWindowLongA; |
3041 alias WINAPI.GetWindowLongW GetWindowLongW; | |
3042 alias WINAPI.GetWindowPlacement GetWindowPlacement; | |
3043 alias WINAPI.GetWindowRect GetWindowRect; | |
3044 alias WINAPI.GetWindowRgn GetWindowRgn; | |
3045 alias WINAPI.GetWindowTextA GetWindowTextA; | |
3046 alias WINAPI.GetWindowTextLengthA GetWindowTextLengthA; | |
3047 alias WINAPI.GetWindowTextLengthW GetWindowTextLengthW; | |
3048 alias WINAPI.GetWindowTextW GetWindowTextW; | |
3049 alias WINAPI.GetWindowThreadProcessId GetWindowThreadProcessId; | |
3050 alias WINAPI.GlobalAlloc GlobalAlloc; | |
3051 alias WINAPI.GlobalFree GlobalFree; | |
3052 alias WINAPI.GlobalLock GlobalLock; | |
3053 alias WINAPI.GlobalSize GlobalSize; | |
3054 alias WINAPI.GlobalUnlock GlobalUnlock; | |
3055 alias WINAPI.GradientFill GradientFill; | |
3056 alias WINAPI.HeapAlloc HeapAlloc; | |
3057 alias WINAPI.HeapFree HeapFree; | |
3058 alias WINAPI.HideCaret HideCaret; | |
28 | 3059 alias WINAPI.IIDFromString IIDFromString; |
15 | 3060 alias WINAPI.ImageList_Add ImageList_Add; |
3061 alias WINAPI.ImageList_AddMasked ImageList_AddMasked; | |
136 | 3062 alias WINAPI.ImageList_BeginDrag ImageList_BeginDrag; |
15 | 3063 alias WINAPI.ImageList_Create ImageList_Create; |
3064 alias WINAPI.ImageList_Destroy ImageList_Destroy; | |
136 | 3065 alias WINAPI.ImageList_DragEnter ImageList_DragEnter; |
3066 alias WINAPI.ImageList_DragLeave ImageList_DragLeave; | |
3067 alias WINAPI.ImageList_DragMove ImageList_DragMove; | |
137 | 3068 alias WINAPI.ImageList_DragShowNolock ImageList_DragShowNolock; |
143 | 3069 alias WINAPI.ImageList_Draw ImageList_Draw; |
136 | 3070 alias WINAPI.ImageList_EndDrag ImageList_EndDrag; |
15 | 3071 alias WINAPI.ImageList_GetIcon ImageList_GetIcon; |
3072 alias WINAPI.ImageList_GetIconSize ImageList_GetIconSize; | |
3073 alias WINAPI.ImageList_GetImageCount ImageList_GetImageCount; | |
3074 alias WINAPI.ImageList_Remove ImageList_Remove; | |
3075 alias WINAPI.ImageList_Replace ImageList_Replace; | |
3076 alias WINAPI.ImageList_ReplaceIcon ImageList_ReplaceIcon; | |
3077 alias WINAPI.ImageList_SetIconSize ImageList_SetIconSize; | |
78 | 3078 // alias WINAPI.ImmAssociateContext ImmAssociateContext; |
3079 // alias WINAPI.ImmCreateContext ImmCreateContext; | |
3080 // alias WINAPI.ImmDestroyContext ImmDestroyContext; | |
3081 // alias WINAPI.ImmGetCompositionFontA ImmGetCompositionFontA; | |
3082 // alias WINAPI.ImmGetCompositionFontW ImmGetCompositionFontW; | |
3083 // alias WINAPI.ImmGetCompositionStringA ImmGetCompositionStringA; | |
3084 // alias WINAPI.ImmGetCompositionStringW ImmGetCompositionStringW; | |
3085 // alias WINAPI.ImmGetContext ImmGetContext; | |
3086 // alias WINAPI.ImmGetConversionStatus ImmGetConversionStatus; | |
3087 // alias WINAPI.ImmGetDefaultIMEWnd ImmGetDefaultIMEWnd; | |
3088 // alias WINAPI.ImmGetOpenStatus ImmGetOpenStatus; | |
3089 // alias WINAPI.ImmReleaseContext ImmReleaseContext; | |
3090 // alias WINAPI.ImmSetCompositionFontA ImmSetCompositionFontA; | |
3091 // alias WINAPI.ImmSetCompositionFontW ImmSetCompositionFontW; | |
3092 // alias WINAPI.ImmSetOpenStatus ImmSetOpenStatus; | |
15 | 3093 alias WINAPI.InitCommonControls InitCommonControls; |
3094 alias WINAPI.InitCommonControlsEx InitCommonControlsEx; | |
3095 alias WINAPI.InsertMenuA InsertMenuA; | |
3096 alias WINAPI.InsertMenuItemA InsertMenuItemA; | |
3097 alias WINAPI.InsertMenuItemW InsertMenuItemW; | |
3098 alias WINAPI.InsertMenuW InsertMenuW; | |
3099 alias WINAPI.InterlockedDecrement InterlockedDecrement; | |
3100 alias WINAPI.InterlockedIncrement InterlockedIncrement; | |
75 | 3101 alias WINAPI.IntersectClipRect IntersectClipRect; |
15 | 3102 alias WINAPI.IntersectRect IntersectRect; |
3103 alias WINAPI.InvalidateRect InvalidateRect; | |
3104 alias WINAPI.InvalidateRgn InvalidateRgn; | |
3105 alias WINAPI.IsDBCSLeadByte IsDBCSLeadByte; | |
33 | 3106 alias WINAPI.IsHungAppWindow IsHungAppWindow; |
15 | 3107 alias WINAPI.IsIconic IsIconic; |
3108 alias WINAPI.IsWindow IsWindow; | |
3109 alias WINAPI.IsWindowEnabled IsWindowEnabled; | |
3110 alias WINAPI.IsWindowVisible IsWindowVisible; | |
3111 alias WINAPI.IsZoomed IsZoomed; | |
3112 alias WINAPI.KillTimer KillTimer; | |
3113 alias WINAPI.LineTo LineTo; | |
3114 alias WINAPI.LoadBitmapA LoadBitmapA; | |
3115 alias WINAPI.LoadBitmapW LoadBitmapW; | |
3116 alias WINAPI.LoadCursorA LoadCursorA; | |
3117 alias WINAPI.LoadCursorW LoadCursorW; | |
3118 alias WINAPI.LoadIconA LoadIconA; | |
3119 alias WINAPI.LoadIconW LoadIconW; | |
3120 alias WINAPI.LoadImageA LoadImageA; | |
3121 alias WINAPI.LoadImageW LoadImageW; | |
3122 alias WINAPI.LoadLibraryA LoadLibraryA; | |
3123 alias WINAPI.LoadLibraryW LoadLibraryW; | |
3124 alias WINAPI.LoadResource LoadResource; | |
3125 alias WINAPI.LoadStringA LoadStringA; | |
3126 alias WINAPI.LoadStringW LoadStringW; | |
3127 alias WINAPI.LocalFree LocalFree; | |
3128 alias WINAPI.LockResource LockResource; | |
3129 alias WINAPI.MapVirtualKeyA MapVirtualKeyA; | |
3130 alias WINAPI.MapVirtualKeyW MapVirtualKeyW; | |
3131 alias WINAPI.MapWindowPoints MapWindowPoints; | |
3132 alias WINAPI.MessageBeep MessageBeep; | |
3133 alias WINAPI.MessageBoxA MessageBoxA; | |
3134 alias WINAPI.MessageBoxW MessageBoxW; | |
3135 alias WINAPI.MonitorFromWindow MonitorFromWindow; | |
3136 alias WINAPI.MoveToEx MoveToEx; | |
3137 alias WINAPI.MsgWaitForMultipleObjectsEx MsgWaitForMultipleObjectsEx; | |
3138 alias WINAPI.MultiByteToWideChar MultiByteToWideChar; | |
3139 alias WINAPI.NotifyWinEvent NotifyWinEvent; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3140 alias WINAPI.OffsetRect OffsetRect; |
15 | 3141 alias WINAPI.OffsetRgn OffsetRgn; |
3142 //alias WINAPI.OleInitialize OleInitialize; | |
3143 //alias WINAPI.OleUninitialize OleUninitialize; | |
3144 alias WINAPI.OpenClipboard OpenClipboard; | |
3145 alias WINAPI.OutputDebugStringA OutputDebugStringA; | |
3146 alias WINAPI.OutputDebugStringW OutputDebugStringW; | |
3147 alias WINAPI.PatBlt PatBlt; | |
3148 alias WINAPI.PeekMessageA PeekMessageA; | |
3149 alias WINAPI.PeekMessageW PeekMessageW; | |
3150 alias WINAPI.Pie Pie; | |
3151 alias WINAPI.Polygon Polygon; | |
3152 alias WINAPI.Polyline Polyline; | |
3153 alias WINAPI.PostMessageA PostMessageA; | |
3154 alias WINAPI.PostMessageW PostMessageW; | |
3155 alias WINAPI.PostThreadMessageA PostThreadMessageA; | |
3156 alias WINAPI.PostThreadMessageW PostThreadMessageW; | |
3157 alias WINAPI.PrintDlgA PrintDlgA; | |
3158 alias WINAPI.PrintDlgW PrintDlgW; | |
3159 alias WINAPI.PtInRect PtInRect; | |
3160 alias WINAPI.PtInRegion PtInRegion; | |
3161 alias WINAPI.RealizePalette RealizePalette; | |
25 | 3162 alias WINAPI.Rectangle Rectangle; |
15 | 3163 alias WINAPI.RectInRegion RectInRegion; |
3164 // <Shawn> Renamed : may conflict with dwt.graphics.rectangle.Rectangle | |
19 | 3165 alias WINAPI.Rectangle _Rectangle; |
15 | 3166 alias WINAPI.RedrawWindow RedrawWindow; |
3167 alias WINAPI.RegCloseKey RegCloseKey; | |
3168 alias WINAPI.RegEnumKeyExA RegEnumKeyExA; | |
3169 alias WINAPI.RegEnumKeyExW RegEnumKeyExW; | |
3170 alias WINAPI.RegOpenKeyExA RegOpenKeyExA; | |
3171 alias WINAPI.RegOpenKeyExW RegOpenKeyExW; | |
3172 alias WINAPI.RegQueryInfoKeyA RegQueryInfoKeyA; | |
3173 alias WINAPI.RegQueryInfoKeyW RegQueryInfoKeyW; | |
3174 alias WINAPI.RegQueryValueExA RegQueryValueExA; | |
3175 alias WINAPI.RegQueryValueExW RegQueryValueExW; | |
3176 alias WINAPI.RegisterClassA RegisterClassA; | |
3177 alias WINAPI.RegisterClassW RegisterClassW; | |
3178 alias WINAPI.RegisterClipboardFormatA RegisterClipboardFormatA; | |
3179 alias WINAPI.RegisterClipboardFormatW RegisterClipboardFormatW; | |
3180 alias WINAPI.RegisterWindowMessageA RegisterWindowMessageA; | |
3181 alias WINAPI.RegisterWindowMessageW RegisterWindowMessageW; | |
3182 alias WINAPI.ReleaseCapture ReleaseCapture; | |
3183 alias WINAPI.ReleaseDC ReleaseDC; | |
3184 alias WINAPI.RemoveMenu RemoveMenu; | |
3185 alias WINAPI.RestoreDC RestoreDC; | |
3186 alias WINAPI.RoundRect RoundRect; | |
3187 alias WINAPI.RtlMoveMemory MoveMemory; | |
3188 alias WINAPI.SHBrowseForFolderA SHBrowseForFolderA; | |
3189 alias WINAPI.SHBrowseForFolderW SHBrowseForFolderW; | |
3190 version(WinCE){ | |
3191 alias WINAPI.SHCreateMenuBar SHCreateMenuBar; | |
3192 } | |
3193 alias WINAPI.SHGetMalloc SHGetMalloc; | |
3194 alias WINAPI.SHGetPathFromIDListA SHGetPathFromIDListA; | |
3195 alias WINAPI.SHGetPathFromIDListW SHGetPathFromIDListW; | |
3196 version(WinCE) | |
3197 { | |
3198 alias WINAPI.SHHandleWMSettingChange SHHandleWMSettingChange; | |
3199 alias WINAPI.SHRecognizeGesture SHRecognizeGesture; | |
3200 alias WINAPI.SHSendBackToFocusWindow SHSendBackToFocusWindow; | |
3201 alias WINAPI.SHSetAppKeyWndAssoc SHSetAppKeyWndAssoc; | |
3202 alias WINAPI.SHSipPreference SHSipPreference; | |
3203 } | |
3204 alias WINAPI.SaveDC SaveDC; | |
3205 alias WINAPI.ScreenToClient ScreenToClient; | |
30 | 3206 alias WINAPI.ScriptApplyDigitSubstitution ScriptApplyDigitSubstitution; |
15 | 3207 alias WINAPI.ScriptBreak ScriptBreak; |
3208 alias WINAPI.ScriptCPtoX ScriptCPtoX; | |
3209 alias WINAPI.ScriptCacheGetHeight ScriptCacheGetHeight; | |
3210 alias WINAPI.ScriptFreeCache ScriptFreeCache; | |
3211 alias WINAPI.ScriptGetFontProperties ScriptGetFontProperties; | |
3212 alias WINAPI.ScriptGetLogicalWidths ScriptGetLogicalWidths; | |
3213 alias WINAPI.ScriptGetProperties ScriptGetProperties; | |
3214 alias WINAPI.ScriptItemize ScriptItemize; | |
30 | 3215 alias WINAPI.ScriptJustify ScriptJustify; |
15 | 3216 alias WINAPI.ScriptLayout ScriptLayout; |
3217 alias WINAPI.ScriptPlace ScriptPlace; | |
30 | 3218 alias WINAPI.ScriptRecordDigitSubstitution ScriptRecordDigitSubstitution; |
15 | 3219 alias WINAPI.ScriptShape ScriptShape; |
3220 alias WINAPI.ScriptTextOut ScriptTextOut; | |
3221 alias WINAPI.ScriptXtoCP ScriptXtoCP; | |
3222 alias WINAPI.ScrollWindowEx ScrollWindowEx; | |
3223 alias WINAPI.SelectClipRgn SelectClipRgn; | |
3224 alias WINAPI.SelectObject SelectObject; | |
3225 alias WINAPI.SelectPalette SelectPalette; | |
3226 alias WINAPI.SendInput SendInput; | |
3227 alias WINAPI.SendMessageA SendMessageA; | |
3228 alias WINAPI.SendMessageW SendMessageW; | |
3229 alias WINAPI.SetActiveWindow SetActiveWindow; | |
3230 alias WINAPI.SetBkColor SetBkColor; | |
3231 alias WINAPI.SetBkMode SetBkMode; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3232 alias WINAPI.SetBrushOrgEx SetBrushOrgEx; |
15 | 3233 alias WINAPI.SetCapture SetCapture; |
3234 alias WINAPI.SetCaretPos SetCaretPos; | |
3235 alias WINAPI.SetClipboardData SetClipboardData; | |
3236 alias WINAPI.SetCursor SetCursor; | |
3237 alias WINAPI.SetCursorPos SetCursorPos; | |
3238 alias WINAPI.SetDIBColorTable SetDIBColorTable; | |
3239 alias WINAPI.SetErrorMode SetErrorMode; | |
3240 alias WINAPI.SetEvent SetEvent; | |
3241 alias WINAPI.SetFocus SetFocus; | |
3242 alias WINAPI.SetForegroundWindow SetForegroundWindow; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3243 alias WINAPI.SetGraphicsMode SetGraphicsMode; |
15 | 3244 alias WINAPI.SetLastError SetLastError; |
3245 alias WINAPI.SetLayout SetLayout; | |
3246 alias WINAPI.SetMenu SetMenu; | |
3247 alias WINAPI.SetMenuDefaultItem SetMenuDefaultItem; | |
3248 alias WINAPI.SetMenuInfo SetMenuInfo; | |
3249 alias WINAPI.SetMenuItemInfoA SetMenuItemInfoA; | |
3250 alias WINAPI.SetMenuItemInfoW SetMenuItemInfoW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3251 alias WINAPI.SetMetaRgn SetMetaRgn; |
15 | 3252 alias WINAPI.SetPaletteEntries SetPaletteEntries; |
3253 alias WINAPI.SetParent SetParent; | |
3254 alias WINAPI.SetPixel SetPixel; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3255 alias WINAPI.SetPolyFillMode SetPolyFillMode; |
15 | 3256 alias WINAPI.SetROP2 SetROP2; |
3257 alias WINAPI.SetRect SetRect; | |
3258 alias WINAPI.SetRectRgn SetRectRgn; | |
3259 alias WINAPI.SetScrollInfo SetScrollInfo; | |
3260 alias WINAPI.SetStretchBltMode SetStretchBltMode; | |
3261 alias WINAPI.SetTextAlign SetTextAlign; | |
3262 alias WINAPI.SetTextColor SetTextColor; | |
3263 alias WINAPI.SetTimer SetTimer; | |
3264 alias WINAPI.SetWindowLongA SetWindowLongA; | |
3265 alias WINAPI.SetWindowLongW SetWindowLongW; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3266 alias WINAPI.SetWindowOrgEx SetWindowOrgEx; |
15 | 3267 alias WINAPI.SetWindowPlacement SetWindowPlacement; |
3268 alias WINAPI.SetWindowPos SetWindowPos; | |
3269 alias WINAPI.SetWindowRgn SetWindowRgn; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3270 alias WINAPI.SetWorldTransform SetWorldTransform; |
15 | 3271 alias WINAPI.SetWindowTextA SetWindowTextA; |
3272 alias WINAPI.SetWindowTextW SetWindowTextW; | |
3273 alias WINAPI.SetWindowsHookExA SetWindowsHookExA; | |
3274 alias WINAPI.SetWindowsHookExW SetWindowsHookExW; | |
3275 alias WINAPI.ShellExecuteExA ShellExecuteExA; | |
3276 alias WINAPI.ShellExecuteExW ShellExecuteExW; | |
3277 alias WINAPI.Shell_NotifyIconA Shell_NotifyIconA; | |
3278 alias WINAPI.Shell_NotifyIconW Shell_NotifyIconW; | |
190 | 3279 alias WINAPI.SHGetFileInfo SHGetFileInfo; |
15 | 3280 alias WINAPI.ShowCaret ShowCaret; |
3281 alias WINAPI.ShowOwnedPopups ShowOwnedPopups; | |
3282 alias WINAPI.ShowScrollBar ShowScrollBar; | |
3283 alias WINAPI.ShowWindow ShowWindow; | |
3284 version(WinCE){ | |
3285 alias WINAPI.SipGetInfo SipGetInfo; | |
3286 } | |
3287 alias WINAPI.SizeofResource SizeofResource; | |
3288 alias WINAPI.Sleep Sleep; | |
3289 alias WINAPI.StartDocA StartDocA; | |
3290 alias WINAPI.StartDocW StartDocW; | |
3291 alias WINAPI.StartPage StartPage; | |
3292 alias WINAPI.StretchBlt StretchBlt; | |
3293 alias WINAPI.SystemParametersInfoA SystemParametersInfoA; | |
3294 alias WINAPI.SystemParametersInfoW SystemParametersInfoW; | |
3295 alias WINAPI.ToAscii ToAscii; | |
3296 alias WINAPI.ToUnicode ToUnicode; | |
3297 alias WINAPI.TrackMouseEvent TrackMouseEvent; | |
3298 alias WINAPI.TrackPopupMenu TrackPopupMenu; | |
3299 alias WINAPI.TranslateAcceleratorA TranslateAcceleratorA; | |
3300 alias WINAPI.TranslateAcceleratorW TranslateAcceleratorW; | |
3301 alias WINAPI.TranslateCharsetInfo TranslateCharsetInfo; | |
3302 alias WINAPI.TranslateMDISysAccel TranslateMDISysAccel; | |
3303 alias WINAPI.TranslateMessage TranslateMessage; | |
25 | 3304 alias WINAPI.TransparentBlt TransparentBlt; |
15 | 3305 version(WinCE){ |
3306 alias WINAPI.TransparentImage TransparentImage; | |
3307 } | |
3308 alias WINAPI.UnhookWindowsHookEx UnhookWindowsHookEx; | |
3309 alias WINAPI.UnregisterClassA UnregisterClassA; | |
3310 alias WINAPI.UnregisterClassW UnregisterClassW; | |
3311 alias WINAPI.UpdateWindow UpdateWindow; | |
3312 alias WINAPI.ValidateRect ValidateRect; | |
3313 alias WINAPI.VkKeyScanA VkKeyScanA; | |
3314 alias WINAPI.VkKeyScanW VkKeyScanW; | |
3315 alias WINAPI.WaitForMultipleObjects WaitForMultipleObjects; | |
3316 alias WINAPI.WaitForSingleObject WaitForSingleObject; | |
3317 alias WINAPI.WaitMessage WaitMessage; | |
3318 alias WINAPI.WideCharToMultiByte WideCharToMultiByte; | |
3319 alias WINAPI.WindowFromDC WindowFromDC; | |
3320 alias WINAPI.WindowFromPoint WindowFromPoint; | |
3321 alias WINAPI.wcslen wcslen; | |
3322 | |
3323 public static int VERSION (int major, int minor) { return major << 16 | minor;} | |
3324 | |
3325 //static int DrawText(int hDC, String lpString, RECT* lpRect, int uFormat){ | |
3326 // return WINAPI.DrawText(hDC, Convert.StringToTCHARz(lpString), lpString.length, lpRect, uFormat); | |
3327 //} | |
3328 // | |
3329 //static int DrawText(int hDC, TCHAR* lpString, int length, RECT* lpRect, int uFormat){ | |
3330 // return WINAPI.DrawText(hDC, lpString, length, lpRect, uFormat); | |
3331 //} | |
3332 | |
3333 static int GetProfileString(char[] lpAppName, char[] lpKeyName, char[] lpDefault, out char[] lpReturnedString, int nSize ){ | |
3334 TCHAR[] buffer = new TCHAR[nSize]; | |
3335 int result = _GetProfileString(.StrToTCHARz(lpAppName), .StrToTCHARz(lpKeyName), .StrToTCHARz(lpDefault), buffer.ptr, nSize); | |
3336 lpReturnedString = .TCHARzToStr(buffer.ptr); | |
19 | 3337 return result; |
15 | 3338 } |
3339 | |
3340 static char[] GetWindowText(HWND hwnd){ | |
19 | 3341 assert(hwnd); |
15 | 3342 int len = GetWindowTextLength(hwnd); |
3343 if(len > 0){ | |
3344 TCHAR[] buffer = new TCHAR[len + 1]; | |
3345 len = _GetWindowText(hwnd, buffer.ptr, buffer.length); | |
3346 return .TCHARzToStr(buffer.ptr, len); | |
3347 } | |
3348 return ""; | |
3349 } | |
3350 | |
3351 // Note: nMaxCount including the NULL character | |
3352 static int GetWindowText(HWND hWnd, TCHAR* lpString, int nMaxCount) | |
3353 { | |
3354 return _GetWindowText(hWnd, lpString, nMaxCount); | |
3355 } | |
3356 | |
19 | 3357 // <Shawn Liu> added this method, copied from ATL : atlwin.h |
15 | 3358 static int CenterWindow(HWND m_hWnd, HWND hWndCenter = null) |
3359 { | |
3360 assert(m_hWnd); | |
19 | 3361 |
15 | 3362 // determine owner window to center against |
3363 uint dwStyle = OS.GetWindowLong(m_hWnd, OS.GWL_STYLE); | |
3364 if(hWndCenter is null) | |
3365 { | |
3366 if(dwStyle & OS.WS_CHILD) | |
3367 hWndCenter = OS.GetParent(m_hWnd); | |
3368 else | |
3369 hWndCenter = OS.GetWindow(m_hWnd, OS.GW_OWNER); | |
3370 } | |
3371 | |
3372 // get coordinates of the window relative to its parent | |
3373 RECT rcDlg; | |
3374 OS.GetWindowRect(m_hWnd, &rcDlg); | |
3375 RECT rcArea; | |
3376 RECT rcCenter; | |
3377 HWND hWndParent; | |
3378 if(!(dwStyle & OS.WS_CHILD)) | |
3379 { | |
19 | 3380 // don't center against invisible or minimized WINAPI |
15 | 3381 if(hWndCenter !is null) |
3382 { | |
3383 uint dwStyleCenter = OS.GetWindowLong(hWndCenter, OS.GWL_STYLE); | |
3384 if(!(dwStyleCenter & OS.WS_VISIBLE) || (dwStyleCenter & OS.WS_MINIMIZE)) | |
3385 hWndCenter = null; | |
3386 } | |
3387 | |
3388 // center within screen coordinates | |
3389 OS.SystemParametersInfo(OS.SPI_GETWORKAREA, 0, &rcArea, 0); | |
3390 if(hWndCenter is null) | |
3391 rcCenter = rcArea; | |
3392 else | |
3393 OS.GetWindowRect(hWndCenter, &rcCenter); | |
3394 } | |
3395 else | |
3396 { | |
3397 // center within parent client coordinates | |
3398 hWndParent = OS.GetParent(m_hWnd); | |
3399 assert(OS.IsWindow(hWndParent)); | |
3400 | |
3401 OS.GetClientRect(hWndParent, &rcArea); | |
3402 assert(OS.IsWindow(hWndCenter)); | |
3403 OS.GetClientRect(hWndCenter, &rcCenter); | |
3404 OS.MapWindowPoints(hWndCenter, hWndParent, cast(POINT*)&rcCenter, 2); | |
3405 } | |
3406 | |
3407 int DlgWidth = rcDlg.right - rcDlg.left; | |
3408 int DlgHeight = rcDlg.bottom - rcDlg.top; | |
3409 | |
3410 // find dialog's upper left based on rcCenter | |
3411 int xLeft = (rcCenter.left + rcCenter.right) / 2 - DlgWidth / 2; | |
3412 int yTop = (rcCenter.top + rcCenter.bottom) / 2 - DlgHeight / 2; | |
3413 | |
3414 // if the dialog is outside the screen, move it inside | |
3415 if(xLeft < rcArea.left) | |
3416 xLeft = rcArea.left; | |
3417 else if(xLeft + DlgWidth > rcArea.right) | |
3418 xLeft = rcArea.right - DlgWidth; | |
3419 | |
3420 if(yTop < rcArea.top) | |
3421 yTop = rcArea.top; | |
3422 else if(yTop + DlgHeight > rcArea.bottom) | |
3423 yTop = rcArea.bottom - DlgHeight; | |
3424 | |
3425 // map screen coordinates to child coordinates | |
3426 return OS.SetWindowPos(m_hWnd, null, xLeft, yTop, -1, -1, | |
19 | 3427 OS.SWP_NOSIZE | OS.SWP_NOZORDER | OS.SWP_NOACTIVATE); |
15 | 3428 } |
3429 | |
89 | 3430 |
3431 alias WINAPI.OleInitialize OleInitialize; | |
3432 alias WINAPI.OleUninitialize OleUninitialize; | |
3433 alias WINAPI.CoCreateInstance CoCreateInstance; | |
3434 | |
30 | 3435 /** |
3436 * <Shawn Liu> | |
3437 * VtbCall partially kept, use VtbCall instead of automation can promote performace | |
3438 * and VtbCall doesn't need prototype of interface declaration | |
3439 */ | |
3440 | |
3441 public static int VtblCall(int fnNumber, void* ppVtbl) { | |
3442 Function1 fn = cast(Function1)(*cast(int **)ppVtbl)[fnNumber]; | |
3443 return fn(ppVtbl); | |
3444 } | |
3445 | |
3446 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0){ | |
3447 Function2 fn = cast(Function2)(*cast(int **)ppVtbl)[fnNumber]; | |
3448 return fn(ppVtbl, arg0); | |
3449 } | |
3450 | |
3451 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1){ | |
3452 Function3 fn = cast(Function3)(*cast(int **)ppVtbl)[fnNumber]; | |
3453 return fn(ppVtbl, arg0, arg1); | |
3454 } | |
3455 | |
3456 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2){ | |
3457 Function4 fn = cast(Function4)(*cast(int **)ppVtbl)[fnNumber]; | |
3458 return fn(ppVtbl, arg0, arg1, arg2); | |
3459 } | |
3460 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3){ | |
3461 Function5 fn = cast(Function5)(*cast(int **)ppVtbl)[fnNumber]; | |
3462 return fn(ppVtbl, arg0, arg1, arg2, arg3); | |
3463 } | |
3464 | |
3465 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4){ | |
3466 Function6 fn = cast(Function6)(*cast(int **)ppVtbl)[fnNumber]; | |
3467 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4); | |
3468 } | |
3469 | |
3470 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5){ | |
3471 Function7 fn = cast(Function7)(*cast(int **)ppVtbl)[fnNumber]; | |
3472 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5); | |
3473 } | |
3474 | |
3475 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6){ | |
3476 Function8 fn = cast(Function8)(*cast(int **)ppVtbl)[fnNumber]; | |
3477 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6); | |
3478 } | |
3479 | |
3480 public static int VtblCall(int fnNumber, void* ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7){ | |
3481 Function9 fn = cast(Function9)(*cast(int **)ppVtbl)[fnNumber]; | |
3482 return fn(ppVtbl, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); | |
3483 } | |
3484 | |
213 | 3485 public static int LOWORD (int /*long*/ l){ |
3486 return l & 0xFFFF; | |
3487 } | |
3488 public static int HIWORD (int /*long*/ h){ | |
3489 return h >> 16; | |
3490 } | |
3491 //public static bool LPtoDP (int /*long*/ hdc, POINT lpPoints, int nCount); | |
3492 public static int MAKEWORD(int l, int h){ | |
3493 return ( h << 16 )|( l &0xFFFF ); | |
3494 } | |
214
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3495 public static int MAKELONG( int low, int high){ |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3496 return (low & 0xFFFF) | (high << 16); |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3497 } |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3498 public static int /*long*/ MAKEWPARAM(int l, int h){ |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3499 return MAKELONG( l, h ); |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3500 } |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3501 public static int /*long*/ MAKELPARAM(int l, int h){ |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3502 return MAKELONG( l, h ); |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3503 } |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3504 public static int /*long*/ MAKELRESULT(int l, int h){ |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3505 return MAKELONG( l, h ); |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3506 } |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3507 public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam){ |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3508 return HIWORD(wParam); |
a8fed3e56433
Fix link error and added missing switch defaults
Frank Benoit <benoit@tionex.de>
parents:
213
diff
changeset
|
3509 } |
213 | 3510 |
3511 public static int GET_X_LPARAM(int /*long*/ lp){ | |
3512 return cast(short) (lp & 0xFFFF); | |
3513 } | |
3514 | |
3515 public static int GET_Y_LPARAM(int /*long*/ lp){ | |
3516 return cast(short) (lp >> 16); | |
3517 } | |
3518 | |
3519 static bool TreeView_GetItemRect( HWND hwnd, HTREEITEM hitem, RECT* prc, bool code) { | |
3520 *cast(HTREEITEM *)prc = hitem; | |
3521 return cast(bool) SendMessage( hwnd, TVM_GETITEMRECT, code, cast(int)prc ); | |
3522 } | |
3523 static int strlen( char* ptr ){ | |
3524 return tango.stdc.string.strlen( ptr ); | |
3525 } | |
3526 | |
3527 static void POINTSTOPOINT( inout POINT pt, int pts) { | |
3528 pt.x = cast(SHORT) LOWORD(pts); | |
3529 pt.y = cast(SHORT) HIWORD(pts); | |
3530 } | |
3531 | |
3532 alias WINAPI.GetScrollBarInfo GetScrollBarInfo; | |
15 | 3533 } // END of OS |
213 | 3534 //----------------------------------------------------------------------------- |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3535 import tango.sys.win32.CodePage : CodePage; |
15 | 3536 private import tango.text.convert.Utf; |
3537 private import tango.stdc.stringz; | |
3538 | |
3539 // convert UTF-8 to MBCS | |
3540 alias StrToMBCS StrToMBCSs; | |
3541 public char[] StrToMBCS(char[] sc, uint codepage = 0) { | |
3542 char[] ret = sc; | |
3543 try{ | |
3544 foreach (char c; sc){ | |
3545 if (c >= 0x80) | |
19 | 3546 { |
15 | 3547 char[] result; |
3548 int i; | |
3549 wchar[] ws = .toString16(sc); | |
3550 result.length = OS.WideCharToMultiByte(codepage, 0, ws.ptr, ws.length, null, 0, null, null); | |
3551 i = OS.WideCharToMultiByte(codepage, 0, ws.ptr, ws.length, result.ptr, result.length, null, null); | |
3552 assert(i == result.length); | |
3553 return result; | |
3554 } | |
3555 } | |
3556 }catch(Exception e){ | |
3557 // do nothing | |
3558 ret = ""; | |
3559 } | |
3560 return ret; | |
3561 } | |
3562 | |
3563 // convert UTF-8 to MBCSz | |
3564 public char* StrToMBCSz(char[] sc) { | |
3565 char* ret = null; | |
3566 try{ | |
3567 if( CodePage.isAscii( sc )){ | |
3568 return .toStringz( sc ); | |
3569 } | |
3570 char[] dst; | |
3571 dst.length = sc.length; | |
128
07e8963537b7
removed tango_sys_win32 and added all necessary bindings to the dwt.internal.win32 WINTYPES and WINAPI modules
Frank Benoit <benoit@tionex.de>
parents:
121
diff
changeset
|
3572 return toStringz( tango.sys.win32.CodePage.CodePage.into( sc, dst )); |
15 | 3573 }catch(Exception e){ |
3574 // do nothing | |
3575 ret = ""; | |
3576 } | |
3577 | |
3578 return ret; | |
3579 } | |
3580 | |
59 | 3581 public wchar[] StrToWCHARs(uint codepage , char[] sc, bool terminated = false ) { |
3582 return StrToWCHARs( sc, terminated ); | |
55 | 3583 } |
59 | 3584 public wchar[] StrToWCHARs(char[] sc, bool terminated = false ) { |
15 | 3585 wchar[] ret; |
3586 try{ | |
3587 ret = toString16(sc); | |
3588 }catch(Exception e){ | |
3589 // do nothing | |
19 | 3590 ret = ""; |
15 | 3591 } |
59 | 3592 if( terminated ){ |
3593 ret ~= \0; | |
3594 } | |
15 | 3595 return ret; |
3596 } | |
3597 | |
55 | 3598 public wchar* StrToWCHARz( uint codepage, char[] sc, uint* length = null ) { |
3599 return StrToWCHARz( sc, length ); | |
3600 } | |
3601 | |
33 | 3602 public wchar* StrToWCHARz(char[] sc, uint* length = null ) { |
59 | 3603 return StrToWCHARs(sc, true ).ptr; |
15 | 3604 } |
3605 | |
3606 public char[] MBCSsToStr(char[] string, uint codepage = 0){ | |
3607 return MBCSzToStr( string.ptr, string.length, codepage); | |
3608 } | |
3609 | |
3610 public char[] MBCSzToStr(char* pString, int _length = -1, uint codepage = 0) { | |
3611 // null terminated string pointer | |
3612 if(_length == -1){ | |
3613 _length = 0; | |
3614 while(*(pString + _length)) | |
19 | 3615 ++_length; |
15 | 3616 } |
3617 // convert MBCS to UTF-8 | |
3618 if(_length == 0) | |
3619 return null; | |
19 | 3620 |
15 | 3621 wchar[] wcs = _mbcszToWs(pString, _length, codepage); |
3622 char[] result; | |
3623 try{ | |
19 | 3624 result = .toString(wcs); |
15 | 3625 }catch(Exception e){ |
3626 } | |
3627 return result; | |
3628 } | |
3629 | |
3630 public char[] WCHARsToStr(wchar[] string){ | |
3631 return WCHARzToStr(cast(wchar*)string, string.length); | |
3632 } | |
3633 | |
3634 public char[] WCHARzToStr(wchar* pString, int _length = -1) | |
3635 { | |
3636 // null terminated string pointer | |
3637 if(_length == -1){ | |
3638 _length = 0; | |
3639 while(*(pString + _length)) | |
19 | 3640 ++_length; |
15 | 3641 } |
3642 if(_length == 0) | |
3643 return null; | |
3644 // convert wchar* to UTF-8 | |
3645 wchar[] wcs = pString[0.._length]; | |
19 | 3646 |
15 | 3647 char[] result; |
3648 try{ | |
3649 result = .toString(wcs); | |
3650 }catch(Exception e){ | |
3651 // do nothing | |
3652 } | |
3653 return result; | |
3654 } | |
3655 | |
19 | 3656 /** |
15 | 3657 * <Shawn> difference between WCHARzToStr(pwstr, -1) : |
19 | 3658 * BSTRToStr() internally call WCHARzToStr(pwstr, length) with length set, |
3659 * instead to determine the null ended, this mean BSTRToStr() can get string | |
15 | 3660 * which has embedded null characters. |
3661 */ | |
3662 | |
3663 version(OLE_COM) | |
19 | 3664 { |
3665 // BSTR is aliased to wchar* | |
15 | 3666 // Note : Free the "bstr" memory if freeTheString is true, default false |
3667 static char[] BSTRToStr(/*BSTR*/ inout wchar* bstr, bool freeTheString = false){ | |
3668 if(bstr is null) return null; | |
3669 int size = (SysStringByteLen(bstr) + 1)/wchar.sizeof; | |
3670 char[] result = WCHARzToStr(bstr, size); | |
3671 if(freeTheString) { | |
3672 // free the string and set ptr to null | |
3673 SysFreeString(bstr); | |
3674 bstr = null; | |
3675 } | |
3676 return result; | |
3677 } | |
3678 } // end of OLE_COM | |
3679 | |
3680 | |
3681 public static wchar[] _mbcszToWs(char* pMBCS, int len, uint codepage = 0) | |
3682 { | |
3683 wchar[] wbuf; | |
19 | 3684 // Convert MBCS to unicode |
15 | 3685 wbuf.length = OS.MultiByteToWideChar(codepage, 0, pMBCS, len, null, 0); |
3686 int n = OS.MultiByteToWideChar(codepage, 0, pMBCS, len, wbuf.ptr, wbuf.length); | |
3687 assert(n == wbuf.length); | |
3688 return wbuf; | |
19 | 3689 } |
15 | 3690 |
3691 // static methods | |
3692 public int _tcslen(TCHAR* pString){ | |
3693 int _length = 0; | |
3694 while(*(pString + _length)) | |
19 | 3695 ++_length; |
3696 | |
3697 return _length; | |
15 | 3698 } |
3699 | |
3700 /** | |
19 | 3701 * There is a bug in Phobos std.string.toupper() to lower() with |
15 | 3702 std.string.toupper() and std.string.tolower() give a wrong result when deal with a mixture of upper/lower English and Chinese characters. e.g. |
3703 char[] a = "AbCd中文eFgH"; | |
3704 char[] b = std.string.toupper(a); | |
3705 char[] c = std.string.tolower(a); | |
3706 The length of a is 11, but the length of b,c is 18 now. | |
3707 * | |
3708 */ | |
3709 public char[] tolower(char[] string) { | |
3710 TCHAR* ps = StrToTCHARz(string); | |
3711 TCHAR* ps2 = OS.CharLower(ps); | |
3712 return TCHARzToStr(ps2); | |
3713 } | |
3714 public char[] toupper(char[] string) { | |
3715 TCHAR* ps = StrToTCHARz(string); | |
3716 TCHAR* ps2 = OS.CharUpper(ps); | |
3717 return TCHARzToStr(ps2); | |
3718 } | |
19 | 3719 |
15 | 3720 version(ANSI){ |
3721 alias StrToMBCS StrToTCHARs; | |
3722 alias StrToMBCSz StrToTCHARz; | |
3723 alias MBCSzToStr TCHARzToStr; | |
3724 alias MBCSsToStr TCHARsToStr; | |
3725 }else{ | |
3726 // Unicode | |
3727 alias StrToWCHARs StrToTCHARs; | |
3728 alias StrToWCHARz StrToTCHARz; | |
3729 alias WCHARzToStr TCHARzToStr; | |
3730 alias WCHARsToStr TCHARsToStr; | |
70 | 3731 alias _tcslen TCHARzLen; |
15 | 3732 } |
3733 | |
3734 | |
3735 //alias Converter.StrToTCHARs StrToTCHARs; | |
3736 //alias Converter.StrToTCHARz StrToTCHARz; | |
3737 //alias Converter.TCHARzToStr TCHARzToStr; | |
3738 //alias Converter.TCHARsToStr TCHARsToStr; | |
3739 | |
3740 | |
55 | 3741 TCHAR[] NewTCHARs( uint codepage, uint len ){ |
213 | 3742 auto res = new TCHAR[ len ]; |
3743 res[] = '\0'; | |
3744 return res; | |
3745 } | |
3746 | |
3747 | |
3748 | |
3749 |