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