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