Mercurial > projects > dynamin
annotate dynamin/c/windows.d @ 55:c138461bf845
Add focusing and other changes that are related
like descendantAdded/Removed events, Window.activated event, and updating List.
Window.state was also added, even though focusing does not depend on it.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 08 Aug 2009 15:42:27 -0500 |
parents | d0ce1db78819 |
children | d5928da5a1f0 |
rev | line source |
---|---|
0 | 1 module dynamin.c.windows; |
2 | |
3 /* | |
4 * A binding to at least the part of the Windows API that Dynamin uses. This | |
6
c41eb8d907b2
Change the Windows binding's description
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
5 * binding is obviously very incomplete but does contain _many_ functions |
c41eb8d907b2
Change the Windows binding's description
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
6 * that the Phobos and Tango Windows bindings do not contain. |
0 | 7 */ |
8 | |
9 version(Windows) { | |
10 } else { | |
11 static assert(0); | |
12 } | |
13 | |
14 version(build) { pragma(link, gdi32, comdlg32, shell32, ole32, winmm); } | |
15 | |
16 extern(Windows): | |
17 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
18 alias char* LPSTR; |
0 | 19 alias wchar* LPWSTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
20 alias char* LPCSTR; |
0 | 21 alias wchar* LPCWSTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
22 // unicode |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
23 alias wchar TCHAR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
24 alias LPWSTR LPTSTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
25 alias LPCWSTR LPCTSTR; |
0 | 26 |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
27 alias VOID* HANDLE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
28 alias HANDLE HBITMAP; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
29 alias HANDLE HBRUSH; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
30 alias HANDLE HICON; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
31 alias HICON HCURSOR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
32 alias HANDLE HDC; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
33 alias HANDLE HGDIOBJ; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
34 alias HANDLE HGLOBAL; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
35 alias int HFILE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
36 alias HANDLE HFONT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
37 alias HANDLE HINSTANCE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
38 alias HANDLE HKEY; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
39 alias HANDLE HMENU; |
0 | 40 alias HINSTANCE HMODULE; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
41 alias int HRESULT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
42 alias HANDLE HRGN; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
43 alias HANDLE HTHEME; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
44 alias HANDLE HWND; |
0 | 45 |
46 version(Win64) { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
47 alias int HALF_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
48 alias uint UHALF_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
49 alias long INT_PTR; |
0 | 50 alias ulong UINT_PTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
51 alias long LONG_PTR; |
0 | 52 alias ulong ULONG_PTR; |
53 } else { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
54 alias short HALF_PTR; |
0 | 55 alias ushort UHALF_PTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
56 alias int INT_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
57 alias uint UINT_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
58 alias int LONG_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
59 alias uint ULONG_PTR; |
0 | 60 } |
61 | |
62 alias INT_PTR function() FARPROC; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
63 alias int BOOL; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
64 alias ubyte BYTE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
65 alias char CHAR; |
0 | 66 alias wchar WCHAR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
67 alias uint DWORD; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
68 alias ulong DWORDLONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
69 alias uint DWORD32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
70 alias ulong DWORD64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
71 alias float FLOAT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
72 alias int INT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
73 alias int INT32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
74 alias long INT64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
75 alias int LONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
76 alias int LONG32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
77 alias long LONG64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
78 alias UINT_PTR WPARAM; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
79 alias LONG_PTR LPARAM; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
80 alias LONG_PTR LRESULT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
81 alias char UCHAR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
82 alias uint UINT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
83 alias uint UINT32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
84 alias ulong UINT64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
85 alias uint ULONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
86 alias uint ULONG32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
87 alias ulong ULONG64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
88 alias short SHORT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
89 alias ushort USHORT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
90 alias void VOID; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
91 alias ushort WORD; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
92 alias WORD ATOM; |
0 | 93 alias ULONG_PTR SIZE_T; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
94 alias DWORD COLORREF; |
0 | 95 alias LONG NTSTATUS; |
96 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
97 const HRESULT S_OK = 0; |
0 | 98 const HRESULT S_FALSE = 1; |
99 const HRESULT NOERROR = 0; | |
100 | |
101 const int MAX_PATH = 260; | |
102 | |
103 alias UINT_PTR function(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) LPOFNHOOKPROC; | |
104 alias LRESULT function(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) WNDPROC; | |
105 alias int function(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) BFFCALLBACK; | |
106 | |
107 public import tango.sys.win32.Macros; | |
108 //public import tango.sys.win32.UserGdi : LOWORD, HIWORD, RGB; | |
109 | |
110 WORD MAKEWORD(BYTE a, BYTE b) { return cast(WORD)a | cast(WORD)b << 8; } | |
111 LONG MAKELONG(WORD a, WORD b) { return cast(WORD)a | cast(WORD)b << 16; } | |
112 BYTE LOBYTE(WORD w) { return cast(BYTE)(w & 0xff); } | |
113 BYTE HIBYTE(WORD w) { return cast(BYTE)(w >> 8); } | |
114 LPWSTR MAKEINTRESOURCE(int i) { return cast(LPWSTR)cast(WORD)i; } | |
115 BYTE GetRValue(DWORD rgb) { return LOBYTE(rgb); } | |
116 BYTE GetGValue(DWORD rgb) { return LOBYTE(cast(WORD)rgb >> 8); } | |
117 BYTE GetBValue(DWORD rgb) { return LOBYTE(rgb >> 16); } | |
118 | |
119 int MessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType); | |
120 | |
121 DWORD GetLastError(); | |
122 | |
123 int MultiByteToWideChar( | |
124 UINT CodePage, | |
125 DWORD dwFlags, | |
126 LPCSTR lpMultiByteStr, | |
127 int cbMultiByte, | |
128 LPWSTR lpWideCharStr, | |
129 int cchWideChar); | |
130 | |
131 int WideCharToMultiByte( | |
132 UINT CodePage, | |
133 DWORD dwFlags, | |
134 LPCWSTR lpWideCharStr, | |
135 int cchWideChar, | |
136 LPSTR lpMultiByteStr, | |
137 int cbMultiByte, | |
138 LPCSTR lpDefaultChar, | |
139 BOOL* lpUsedDefaultChar); | |
140 | |
141 //{{{ memory functions | |
142 HANDLE GetProcessHeap(); | |
143 | |
144 VOID* HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes); | |
145 | |
146 VOID* HeapReAlloc(HANDLE hHeap, DWORD dwFlags, VOID* lpMem, SIZE_T dwBytes); | |
147 | |
148 BOOL HeapFree(HANDLE hHeap, DWORD dwFlags, VOID* lpMem); | |
149 | |
150 SIZE_T HeapSize(HANDLE hHeap, DWORD dwFlags, /*const*/ VOID* lpMem); | |
151 | |
152 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
153 HEAP_ZERO_MEMORY = 0x0008, |
0 | 154 HEAP_REALLOC_IN_PLACE_ONLY = 0x0010 |
155 } | |
156 | |
157 HGLOBAL GlobalAlloc(UINT uFlags, SIZE_T dwBytes); | |
158 | |
159 HGLOBAL GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags); | |
160 | |
161 HGLOBAL GlobalFree(HGLOBAL hMem); | |
162 | |
163 VOID* GlobalLock(HGLOBAL hMem); | |
164 | |
165 BOOL GlobalUnlock(HGLOBAL hMem); | |
166 | |
167 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
168 GMEM_FIXED = 0x0000, |
0 | 169 GMEM_MOVEABLE = 0x0002, |
170 GMEM_ZEROINIT = 0x0040, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
171 GPTR = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
172 GHND = 0x0042 |
0 | 173 } |
174 //}}} | |
175 | |
176 //{{{ window functions | |
177 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
178 CS_VREDRAW = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
179 CS_HREDRAW = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
180 CS_DBLCLKS = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
181 CS_OWNDC = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
182 CS_CLASSDC = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
183 CS_PARENTDC = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
184 CS_NOCLOSE = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
185 CS_SAVEBITS = 0x0800, |
0 | 186 CS_BYTEALIGNCLIENT = 0x1000, |
187 CS_BYTEALIGNWINDOW = 0x2000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
188 CS_GLOBALCLASS = 0x4000, |
0 | 189 //Windows XP required |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
190 CS_DROPSHADOW = 0x00020000 |
0 | 191 |
192 } | |
193 ATOM RegisterClassExW(/*const*/ WNDCLASSEX* lpwcx); | |
194 | |
195 LRESULT DefWindowProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); | |
196 | |
197 //{{{ window styles | |
198 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
199 WS_OVERLAPPED = 0x00000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
200 WS_MAXIMIZEBOX = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
201 WS_TABSTOP = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
202 WS_GROUP = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
203 WS_MINIMIZEBOX = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
204 WS_THICKFRAME = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
205 WS_SYSMENU = 0x00080000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
206 WS_HSCROLL = 0x00100000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
207 WS_VSCROLL = 0x00200000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
208 WS_DLGFRAME = 0x00400000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
209 WS_BORDER = 0x00800000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
210 WS_CAPTION = 0x00C00000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
211 WS_MAXIMIZE = 0x01000000, |
0 | 212 WS_CLIPCHILDREN = 0x02000000, |
213 WS_CLIPSIBLINGS = 0x04000000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
214 WS_DISABLED = 0x08000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
215 WS_VISIBLE = 0x10000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
216 WS_MINIMIZE = 0x20000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
217 WS_CHILD = 0x40000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
218 WS_POPUP = 0x80000000, |
0 | 219 WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
220 WS_CAPTION | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
221 WS_SYSMENU | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
222 WS_THICKFRAME | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
223 WS_MINIMIZEBOX | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
224 WS_MAXIMIZEBOX, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
225 WS_POPUPWINDOW = WS_POPUP | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
226 WS_BORDER | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
227 WS_SYSMENU, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
228 WS_CHILDWINDOW = WS_CHILD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
229 WS_TILED = WS_OVERLAPPED, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
230 WS_ICONIC = WS_MINIMIZE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
231 WS_SIZEBOX = WS_THICKFRAME, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
232 WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW |
0 | 233 } |
234 //}}} | |
235 | |
236 //{{{ extended window styles | |
237 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
238 WS_EX_DLGMODALFRAME = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
239 WS_EX_TOPMOST = 0x00000008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
240 WS_EX_TOOLWINDOW = 0x00000080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
241 WS_EX_WINDOWEDGE = 0x00000100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
242 WS_EX_CLIENTEDGE = 0x00000200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
243 WS_EX_CONTROLPARENT = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
244 WS_EX_STATICEDGE = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
245 WS_EX_APPWINDOW = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
246 WS_EX_LAYERED = 0x00080000, |
0 | 247 WS_EX_OVERLAPPEDWINDOW = WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
248 WS_EX_COMPOSITED = 0x02000000 |
0 | 249 } |
250 //}}} | |
251 | |
252 //{{{ CreateWindowEx() | |
253 HWND CreateWindowExW( | |
254 DWORD dwExStyle, | |
255 LPCWSTR lpClassName, | |
256 LPCWSTR lpWindowName, | |
257 DWORD dwStyle, | |
258 int x, | |
259 int y, | |
260 int nWidth, | |
261 int nHeight, | |
262 HWND hWndParent, | |
263 HMENU hMenu, | |
264 HINSTANCE hInstance, | |
265 VOID* lpParam); | |
266 //}}} | |
267 | |
268 BOOL DestroyWindow(HWND hWnd); | |
269 | |
270 BOOL ClientToScreen(HWND hWnd, POINT* lpPoint); | |
271 | |
272 BOOL ScreenToClient(HWND hWnd, POINT* lpPoint); | |
273 | |
55
c138461bf845
Add focusing and other changes that are related
Jordan Miner <jminer7@gmail.com>
parents:
21
diff
changeset
|
274 BOOL SetForegroundWindow(HWND hWnd); |
c138461bf845
Add focusing and other changes that are related
Jordan Miner <jminer7@gmail.com>
parents:
21
diff
changeset
|
275 |
0 | 276 //{{{ messages |
277 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
278 WM_NULL = 0x0000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
279 WM_CREATE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
280 WM_DESTROY = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
281 WM_MOVE = 0x0003, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
282 WM_SIZE = 0x0005, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
283 WM_ACTIVATE = 0x0006, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
284 WM_SETFOCUS = 0x0007, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
285 WM_KILLFOCUS = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
286 WM_ENABLE = 0x000A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
287 WM_SETREDRAW = 0x000B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
288 WM_SETTEXT = 0x000C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
289 WM_GETTEXT = 0x000D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
290 WM_GETTEXTLENGTH = 0x000E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
291 WM_PAINT = 0x000F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
292 WM_CLOSE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
293 WM_QUERYENDSESSION = 0x0011, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
294 WM_QUERYOPEN = 0x0013, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
295 WM_ENDSESSION = 0x0016, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
296 WM_QUIT = 0x0012, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
297 WM_ERASEBKGND = 0x0014, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
298 WM_SYSCOLORCHANGE = 0x0015, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
299 WM_SHOWWINDOW = 0x0018, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
300 WM_WININICHANGE = 0x001A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
301 WM_SETTINGCHANGE = WM_WININICHANGE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
302 WM_DEVMODECHANGE = 0x001B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
303 WM_ACTIVATEAPP = 0x001C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
304 WM_FONTCHANGE = 0x001D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
305 WM_TIMECHANGE = 0x001E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
306 WM_CANCELMODE = 0x001F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
307 WM_SETCURSOR = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
308 WM_MOUSEACTIVATE = 0x0021, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
309 WM_CHILDACTIVATE = 0x0022, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
310 WM_QUEUESYNC = 0x0023, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
311 WM_GETMINMAXINFO = 0x0024, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
312 WM_PAINTICON = 0x0026, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
313 WM_ICONERASEBKGND = 0x0027, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
314 WM_NEXTDLGCTL = 0x0028, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
315 WM_SPOOLERSTATUS = 0x002A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
316 WM_DRAWITEM = 0x002B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
317 WM_MEASUREITEM = 0x002C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
318 WM_DELETEITEM = 0x002D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
319 WM_VKEYTOITEM = 0x002E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
320 WM_CHARTOITEM = 0x002F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
321 WM_SETFONT = 0x0030, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
322 WM_GETFONT = 0x0031, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
323 WM_SETHOTKEY = 0x0032, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
324 WM_GETHOTKEY = 0x0033, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
325 WM_QUERYDRAGICON = 0x0037, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
326 WM_COMPAREITEM = 0x0039, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
327 WM_GETOBJECT = 0x003D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
328 WM_COMPACTING = 0x0041, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
329 WM_WINDOWPOSCHANGING = 0x0046, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
330 WM_WINDOWPOSCHANGED = 0x0047, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
331 WM_POWER = 0x0048, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
332 WM_COPYDATA = 0x004A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
333 WM_CANCELJOURNAL = 0x004B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
334 WM_NOTIFY = 0x004E, |
0 | 335 WM_INPUTLANGCHANGEREQUEST = 0x0050, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
336 WM_INPUTLANGCHANGE = 0x0051, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
337 WM_TCARD = 0x0052, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
338 WM_HELP = 0x0053, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
339 WM_USERCHANGED = 0x0054, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
340 WM_NOTIFYFORMAT = 0x0055, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
341 WM_CONTEXTMENU = 0x007B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
342 WM_STYLECHANGING = 0x007C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
343 WM_STYLECHANGED = 0x007D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
344 WM_DISPLAYCHANGE = 0x007E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
345 WM_GETICON = 0x007F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
346 WM_SETICON = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
347 WM_NCCREATE = 0x0081, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
348 WM_NCDESTROY = 0x0082, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
349 WM_NCCALCSIZE = 0x0083, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
350 WM_NCHITTEST = 0x0084, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
351 WM_NCPAINT = 0x0085, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
352 WM_NCACTIVATE = 0x0086, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
353 WM_GETDLGCODE = 0x0087, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
354 WM_SYNCPAINT = 0x0088, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
355 WM_NCMOUSEMOVE = 0x00A0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
356 WM_NCLBUTTONDOWN = 0x00A1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
357 WM_NCLBUTTONUP = 0x00A2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
358 WM_NCLBUTTONDBLCLK = 0x00A3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
359 WM_NCRBUTTONDOWN = 0x00A4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
360 WM_NCRBUTTONUP = 0x00A5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
361 WM_NCRBUTTONDBLCLK = 0x00A6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
362 WM_NCMBUTTONDOWN = 0x00A7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
363 WM_NCMBUTTONUP = 0x00A8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
364 WM_NCMBUTTONDBLCLK = 0x00A9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
365 WM_NCXBUTTONDOWN = 0x00AB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
366 WM_NCXBUTTONUP = 0x00AC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
367 WM_NCXBUTTONDBLCLK = 0x00AD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
368 WM_INPUT = 0x00FF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
369 WM_KEYDOWN = 0x0100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
370 WM_KEYUP = 0x0101, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
371 WM_CHAR = 0x0102, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
372 WM_DEADCHAR = 0x0103, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
373 WM_SYSKEYDOWN = 0x0104, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
374 WM_SYSKEYUP = 0x0105, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
375 WM_SYSCHAR = 0x0106, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
376 WM_SYSDEADCHAR = 0x0107, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
377 WM_UNICHAR = 0x0109, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
378 WM_IME_STARTCOMPOSITION = 0x010D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
379 WM_IME_ENDCOMPOSITION = 0x010E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
380 WM_IME_COMPOSITION = 0x010F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
381 WM_IME_KEYLAST = 0x010F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
382 WM_INITDIALOG = 0x0110, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
383 WM_COMMAND = 0x0111, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
384 WM_SYSCOMMAND = 0x0112, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
385 WM_TIMER = 0x0113, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
386 WM_HSCROLL = 0x0114, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
387 WM_VSCROLL = 0x0115, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
388 WM_INITMENU = 0x0116, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
389 WM_INITMENUPOPUP = 0x0117, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
390 WM_MENUSELECT = 0x011F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
391 WM_MENUCHAR = 0x0120, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
392 WM_ENTERIDLE = 0x0121, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
393 WM_MENURBUTTONUP = 0x0122, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
394 WM_MENUDRAG = 0x0123, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
395 WM_MENUGETOBJECT = 0x0124, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
396 WM_UNINITMENUPOPUP = 0x0125, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
397 WM_MENUCOMMAND = 0x0126, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
398 WM_CHANGEUISTATE = 0x0127, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
399 WM_UPDATEUISTATE = 0x0128, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
400 WM_QUERYUISTATE = 0x0129, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
401 WM_CTLCOLORMSGBOX = 0x0132, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
402 WM_CTLCOLOREDIT = 0x0133, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
403 WM_CTLCOLORLISTBOX = 0x0134, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
404 WM_CTLCOLORBTN = 0x0135, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
405 WM_CTLCOLORDLG = 0x0136, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
406 WM_CTLCOLORSCROLLBAR = 0x0137, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
407 WM_CTLCOLORSTATIC = 0x0138, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
408 WM_MOUSEFIRST = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
409 WM_MOUSEMOVE = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
410 WM_LBUTTONDOWN = 0x0201, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
411 WM_LBUTTONUP = 0x0202, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
412 WM_LBUTTONDBLCLK = 0x0203, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
413 WM_RBUTTONDOWN = 0x0204, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
414 WM_RBUTTONUP = 0x0205, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
415 WM_RBUTTONDBLCLK = 0x0206, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
416 WM_MBUTTONDOWN = 0x0207, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
417 WM_MBUTTONUP = 0x0208, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
418 WM_MBUTTONDBLCLK = 0x0209, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
419 WM_MOUSEWHEEL = 0x020A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
420 WM_XBUTTONDOWN = 0x020B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
421 WM_XBUTTONUP = 0x020C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
422 WM_XBUTTONDBLCLK = 0x020D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
423 WM_PARENTNOTIFY = 0x0210, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
424 WM_ENTERMENULOOP = 0x0211, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
425 WM_EXITMENULOOP = 0x0212, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
426 WM_NEXTMENU = 0x0213, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
427 WM_SIZING = 0x0214, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
428 WM_CAPTURECHANGED = 0x0215, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
429 WM_MOVING = 0x0216, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
430 WM_POWERBROADCAST = 0x0218, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
431 WM_DEVICECHANGE = 0x0219, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
432 WM_MDICREATE = 0x0220, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
433 WM_MDIDESTROY = 0x0221, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
434 WM_MDIACTIVATE = 0x0222, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
435 WM_MDIRESTORE = 0x0223, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
436 WM_MDINEXT = 0x0224, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
437 WM_MDIMAXIMIZE = 0x0225, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
438 WM_MDITILE = 0x0226, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
439 WM_MDICASCADE = 0x0227, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
440 WM_MDIICONARRANGE = 0x0228, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
441 WM_MDIGETACTIVE = 0x0229, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
442 WM_MDISETMENU = 0x0230, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
443 WM_ENTERSIZEMOVE = 0x0231, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
444 WM_EXITSIZEMOVE = 0x0232, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
445 WM_DROPFILES = 0x0233, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
446 WM_MDIREFRESHMENU = 0x0234, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
447 WM_IME_SETCONTEXT = 0x0281, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
448 WM_IME_NOTIFY = 0x0282, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
449 WM_IME_CONTROL = 0x0283, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
450 WM_IME_COMPOSITIONFULL = 0x0284, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
451 WM_IME_SELECT = 0x0285, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
452 WM_IME_CHAR = 0x0286, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
453 WM_IME_REQUEST = 0x0288, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
454 WM_IME_KEYDOWN = 0x0290, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
455 WM_IME_KEYUP = 0x0291, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
456 WM_MOUSEHOVER = 0x02A1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
457 WM_MOUSELEAVE = 0x02A3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
458 WM_NCMOUSEHOVER = 0x02A0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
459 WM_NCMOUSELEAVE = 0x02A2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
460 WM_WTSSESSION_CHANGE = 0x02B1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
461 WM_TABLET_FIRST = 0x02C0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
462 WM_TABLET_LAST = 0x02DF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
463 WM_CUT = 0x0300, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
464 WM_COPY = 0x0301, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
465 WM_PASTE = 0x0302, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
466 WM_CLEAR = 0x0303, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
467 WM_UNDO = 0x0304, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
468 WM_RENDERFORMAT = 0x0305, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
469 WM_RENDERALLFORMATS = 0x0306, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
470 WM_DESTROYCLIPBOARD = 0x0307, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
471 WM_DRAWCLIPBOARD = 0x0308, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
472 WM_PAINTCLIPBOARD = 0x0309, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
473 WM_VSCROLLCLIPBOARD = 0x030A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
474 WM_SIZECLIPBOARD = 0x030B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
475 WM_ASKCBFORMATNAME = 0x030C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
476 WM_CHANGECBCHAIN = 0x030D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
477 WM_HSCROLLCLIPBOARD = 0x030E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
478 WM_QUERYNEWPALETTE = 0x030F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
479 WM_PALETTEISCHANGING = 0x0310, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
480 WM_PALETTECHANGED = 0x0311, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
481 WM_HOTKEY = 0x0312, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
482 WM_PRINT = 0x0317, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
483 WM_PRINTCLIENT = 0x0318, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
484 WM_APPCOMMAND = 0x0319, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
485 WM_THEMECHANGED = 0x031A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
486 WM_HANDHELDFIRST = 0x0358, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
487 WM_HANDHELDLAST = 0x035F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
488 WM_AFXFIRST = 0x0360, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
489 WM_AFXLAST = 0x037F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
490 WM_PENWINFIRST = 0x0380, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
491 WM_PENWINLAST = 0x038F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
492 WM_APP = 0x8000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
493 WM_USER = 0x0400 |
0 | 494 } |
495 enum { | |
496 PBT_APMQUERYSUSPEND = 0x0000, | |
497 PBT_APMQUERYSTANDBY = 0x0001, | |
498 PBT_APMQUERYSUSPENDFAILED = 0x0002, | |
499 PBT_APMQUERYSTANDBYFAILED = 0x0003, | |
500 PBT_APMSUSPEND = 0x0004, | |
501 PBT_APMSTANDBY = 0x0005, | |
502 PBT_APMRESUMECRITICAL = 0x0006, | |
503 PBT_APMRESUMESUSPEND = 0x0007, | |
504 PBT_APMRESUMESTANDBY = 0x0008, | |
505 PBTF_APMRESUMEFROMFAILURE = 0x00000001, | |
506 PBT_APMBATTERYLOW = 0x0009, | |
507 PBT_APMPOWERSTATUSCHANGE = 0x000A, | |
508 PBT_APMOEMEVENT = 0x000B, | |
509 PBT_APMRESUMEAUTOMATIC = 0x0012 | |
510 } | |
511 //}}} | |
512 | |
513 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
514 MK_LBUTTON = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
515 MK_RBUTTON = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
516 MK_SHIFT = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
517 MK_CONTROL = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
518 MK_MBUTTON = 0x0010, |
0 | 519 MK_XBUTTON1 = 0x0020, |
520 MK_XBUTTON2 = 0x0040 | |
521 } | |
522 | |
523 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
524 WMSZ_LEFT = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
525 WMSZ_RIGHT = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
526 WMSZ_TOP = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
527 WMSZ_TOPLEFT = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
528 WMSZ_TOPRIGHT = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
529 WMSZ_BOTTOM = 6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
530 WMSZ_BOTTOMLEFT = 7, |
0 | 531 WMSZ_BOTTOMRIGHT = 8 |
532 } | |
533 | |
534 enum { | |
535 SIZE_RESTORED = 0, | |
536 SIZE_MINIMIZED = 1, | |
537 SIZE_MAXIMIZED = 2, | |
538 SIZE_MAXSHOW = 3, | |
539 SIZE_MAXHIDE = 4 | |
540 } | |
541 | |
542 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
543 SW_HIDE = 0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
544 SW_SHOWNORMAL = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
545 SW_NORMAL = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
546 SW_SHOWMINIMIZED = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
547 SW_SHOWMAXIMIZED = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
548 SW_MAXIMIZE = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
549 SW_SHOWNOACTIVATE = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
550 SW_SHOW = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
551 SW_MINIMIZE = 6, |
0 | 552 SW_SHOWMINNOACTIVE = 7, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
553 SW_SHOWNA = 8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
554 SW_RESTORE = 9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
555 SW_SHOWDEFAULT = 10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
556 SW_FORCEMINIMIZE = 11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
557 SW_MAX = 11 |
0 | 558 } |
559 | |
560 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
561 GWL_STYLE = -16, |
0 | 562 GWL_EXSTYLE = -20 |
563 } | |
564 | |
565 DWORD GetClassLongW(HWND hWnd, int nIndex); | |
566 | |
567 DWORD SetClassLongW(HWND hWnd, int nIndex, LONG dwNewLong); | |
568 | |
569 ULONG_PTR GetClassLongPtrW(HWND hWnd, int nIndex); | |
570 | |
571 ULONG_PTR SetClassLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong); | |
572 | |
573 LONG GetWindowLongW(HWND hWnd, int nIndex); | |
574 | |
575 LONG SetWindowLongW(HWND hWnd, int nIndex, LONG dwNewLong); | |
576 | |
577 LONG_PTR GetWindowLongPtrW(HWND hWnd, int nIndex); | |
578 | |
579 LONG_PTR SetWindowLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong); | |
580 | |
581 BOOL ShowWindow(HWND hWnd, int nCmdShow); | |
582 | |
583 //Windows 98 required | |
584 BOOL AnimateWindow(HWND hWnd, DWORD dwTime, DWORD dwFlags); | |
585 | |
586 BOOL IsWindowVisible(HWND hWnd); | |
587 | |
588 BOOL IsWindow(HWND hWnd); | |
589 | |
590 BOOL GetWindowRect(HWND hWnd, RECT* lpRect); | |
591 | |
592 BOOL GetClientRect(HWND hWnd, RECT* lpRect); | |
593 | |
594 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
595 SWP_NOSIZE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
596 SWP_NOMOVE = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
597 SWP_NOZORDER = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
598 SWP_NOACTIVATE = 0x0010, |
0 | 599 SWP_FRAMECHANGED = 0x0020 |
600 } | |
601 | |
602 BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags); | |
603 | |
604 BOOL MoveWindow(HWND hWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint); | |
605 | |
606 int SetWindowRgn(HWND hWnd, HRGN hRgn, BOOL bRedraw); | |
607 | |
608 enum { | |
609 ULW_COLORKEY = 0x00000001, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
610 ULW_ALPHA = 0x00000002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
611 ULW_OPAQUE = 0x00000004 |
0 | 612 } |
613 | |
614 BOOL UpdateLayeredWindow( | |
615 HWND hWnd, | |
616 HDC hdcDst, | |
617 POINT* pptDst, | |
618 SIZE* psize, | |
619 HDC hdcSrc, | |
620 POINT* pptSrc, | |
621 COLORREF crKey, | |
622 BLENDFUNCTION* pblend, | |
623 DWORD dwFlags); | |
624 | |
625 HWND SetParent(HWND hWndChild, HWND hWndNewParent); | |
626 | |
627 HWND GetParent(HWND hWnd); | |
628 | |
629 BOOL IsChild(HWND hWndParent, HWND hWnd); | |
630 | |
631 BOOL EnableWindow(HWND hWnd, BOOL bEnable); | |
632 | |
633 enum { | |
634 GW_HWNDFIRST = 0, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
635 GW_HWNDLAST = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
636 GW_HWNDNEXT = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
637 GW_HWNDPREV = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
638 GW_OWNER = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
639 GW_CHILD = 5 |
0 | 640 } |
641 | |
642 HWND GetWindow(HWND hWnd, UINT uCmd); | |
643 | |
644 BOOL GetWindowInfo(HWND hwnd, WINDOWINFO* pwi); | |
645 | |
646 int GetWindowTextLength(HWND hWnd); | |
647 | |
648 int GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount); | |
649 | |
650 BOOL SetWindowTextW(HWND hWnd, LPCWSTR lpString); | |
651 | |
652 UINT GetWindowModuleFileNameW(HWND hWnd, LPWSTR lpszFileName, UINT cchFileNameMax); | |
653 | |
654 BOOL SetPropW(HWND hWnd, LPCWSTR lpString, HANDLE hData); | |
655 | |
656 HANDLE GetPropW(HWND hWnd, LPCWSTR lpString); | |
657 | |
658 HANDLE RemovePropW(HWND hWnd, LPCWSTR lpString); | |
659 | |
660 DWORD CommDlgExtendedError(); | |
661 enum { FNERR_BUFFERTOOSMALL = 0x3003 } | |
662 | |
663 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
664 OFN_READONLY = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
665 OFN_OVERWRITEPROMPT = 0x00000002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
666 OFN_HIDEREADONLY = 0x00000004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
667 OFN_NOCHANGEDIR = 0x00000008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
668 OFN_SHOWHELP = 0x00000010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
669 OFN_ENABLEHOOK = 0x00000020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
670 OFN_ENABLETEMPLATE = 0x00000040, |
0 | 671 OFN_ENABLETEMPLATEHANDLE = 0x00000080, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
672 OFN_NOVALIDATE = 0x00000100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
673 OFN_ALLOWMULTISELECT = 0x00000200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
674 OFN_EXTENSIONDIFFERENT = 0x00000400, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
675 OFN_PATHMUSTEXIST = 0x00000800, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
676 OFN_FILEMUSTEXIST = 0x00001000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
677 OFN_CREATEPROMPT = 0x00002000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
678 OFN_SHAREAWARE = 0x00004000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
679 OFN_NOREADONLYRETURN = 0x00008000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
680 OFN_NOTESTFILECREATE = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
681 OFN_NONETWORKBUTTON = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
682 OFN_NOLONGNAMES = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
683 OFN_EXPLORER = 0x00080000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
684 OFN_NODEREFERENCELINKS = 0x00100000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
685 OFN_LONGNAMES = 0x00200000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
686 OFN_ENABLEINCLUDENOTIFY = 0x00400000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
687 OFN_ENABLESIZING = 0x00800000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
688 OFN_DONTADDTORECENT = 0x02000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
689 OFN_FORCESHOWHIDDEN = 0x10000000 |
0 | 690 } |
691 | |
692 BOOL GetOpenFileNameW(OPENFILENAME* lpofn); | |
693 | |
694 BOOL GetSaveFileNameW(OPENFILENAME* lpofn); | |
695 | |
696 //}}} | |
697 | |
698 //{{{ painting functions | |
699 BOOL InvalidateRect(HWND hWnd, RECT* lpRect, BOOL bErase); | |
700 | |
701 BOOL ValidateRect(HWND hWnd, RECT* lpRect); | |
702 | |
703 BOOL UpdateWindow(HWND hWnd); | |
704 | |
705 HWND WindowFromDC(HDC hdc); | |
706 | |
707 HDC BeginPaint(HWND hWnd, PAINTSTRUCT* lpPaint); | |
708 | |
709 BOOL EndPaint(HWND hWnd, PAINTSTRUCT* lpPaint); | |
710 //}}} | |
711 | |
712 //{{{ device context functions | |
713 HDC GetDC(HWND hWnd); | |
714 | |
715 int ReleaseDC(HWND hWnd, HDC hDC); | |
716 | |
717 HDC CreateCompatibleDC(HDC hdc); | |
718 | |
719 BOOL DeleteDC(HDC hdc); | |
720 | |
721 HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hObject); | |
722 | |
723 BOOL DeleteObject(HGDIOBJ hObject); | |
724 | |
725 int GetObjectW(HANDLE h, int c, VOID* pv); | |
726 | |
727 HBITMAP CreateCompatibleBitmap(HDC hdc, int cx, int cy); | |
728 | |
729 HBITMAP CreateDIBSection( | |
730 HDC hdc, | |
731 BITMAPINFO* lpbmi, | |
732 UINT usage, | |
733 VOID** ppvBits, | |
734 HANDLE hSection, | |
735 DWORD offset); | |
736 | |
737 int GetDIBits(HDC hdc, HBITMAP hbm, UINT start, UINT cLines, VOID* lpvBits, BITMAPINFO* lpbmi, UINT usage); | |
738 | |
739 enum { | |
740 DIB_RGB_COLORS = 0 | |
741 } | |
742 enum { | |
743 BI_RGB = 0 | |
744 } | |
745 | |
746 enum { | |
747 SRCCOPY = 0x00CC0020 | |
748 } | |
749 | |
750 BOOL BitBlt(HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop); | |
751 | |
752 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
753 AC_SRC_OVER = 0x00, |
0 | 754 AC_SRC_ALPHA = 0x01 |
755 } | |
756 | |
757 int EnumFontFamiliesExW( | |
758 HDC hdc, LOGFONT* lpLogfont, | |
759 FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); | |
760 | |
761 alias int function(ENUMLOGFONTEX*, TEXTMETRIC*, DWORD, LPARAM) FONTENUMPROCA; | |
762 alias int function(ENUMLOGFONTEX*, TEXTMETRIC*, DWORD, LPARAM) FONTENUMPROCW; | |
763 //}}} | |
764 | |
765 //{{{ message functions | |
766 BOOL GetMessageW(MSG* lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); | |
767 | |
768 BOOL TranslateMessage(MSG* lpMsg); | |
769 | |
770 LRESULT DispatchMessageW(MSG* lpMsg); | |
771 | |
13
a3a2aa21fc52
Fix stupid ommission of PostMessage() binding in last commit.
Jordan Miner <jminer7@gmail.com>
parents:
12
diff
changeset
|
772 BOOL PostMessageW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); |
0 | 773 |
774 void PostQuitMessage(int nExitCode); | |
775 | |
12
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
776 LRESULT SendMessageW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
777 |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
778 BOOL InSendMessage(); |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
779 |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
780 BOOL ReplyMessage(LRESULT lResult); |
0 | 781 //}}} |
782 | |
783 //{{{ clipboard functions | |
784 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
785 CF_TEXT = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
786 CF_BITMAP = 2, |
0 | 787 CF_METAFILEPICT = 3, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
788 CF_SYLK = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
789 CF_DIF = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
790 CF_TIFF = 6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
791 CF_OEMTEXT = 7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
792 CF_DIB = 8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
793 CF_PALETTE = 9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
794 CF_PENDATA = 10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
795 CF_RIFF = 11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
796 CF_WAVE = 12, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
797 CF_UNICODETEXT = 13, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
798 CF_ENHMETAFILE = 14, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
799 CF_HDROP = 15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
800 CF_LOCALE = 16 |
0 | 801 } |
802 | |
803 BOOL OpenClipboard(HWND hWndNewOwner); | |
804 | |
805 BOOL CloseClipboard(); | |
806 | |
807 BOOL IsClipboardFormatAvailable(UINT format); | |
808 | |
809 HANDLE GetClipboardData(UINT uFormat); | |
810 | |
811 HANDLE SetClipboardData(UINT uFormat, HANDLE hMem); | |
812 | |
813 BOOL EmptyClipboard(); | |
814 //}}} | |
815 | |
816 //{{{ mouse functions | |
817 enum { | |
818 XBUTTON1 = 0x0001, | |
819 XBUTTON2 = 0x0002 | |
820 } | |
821 | |
822 HWND SetCapture(HWND hWnd); | |
823 | |
824 BOOL ReleaseCapture(); | |
825 | |
826 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
827 TME_HOVER = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
828 TME_LEAVE = 0x00000002, |
0 | 829 TME_NONCLIENT = 0x00000010 |
830 } | |
831 BOOL TrackMouseEvent(TRACKMOUSEEVENT* lpEventTrack); | |
832 | |
833 HCURSOR SetCursor(HCURSOR hCursor); | |
834 | |
835 BOOL GetCursorPos(POINT* lpPoint); | |
836 //}}} | |
837 | |
838 //{{{ keyboard functions | |
839 //{{{ keys | |
840 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
841 VK_LBUTTON = 0x01, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
842 VK_RBUTTON = 0x02, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
843 VK_CANCEL = 0x03, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
844 VK_MBUTTON = 0x04, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
845 VK_XBUTTON1 = 0x05, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
846 VK_XBUTTON2 = 0x06, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
847 VK_BACK = 0x08, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
848 VK_TAB = 0x09, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
849 VK_CLEAR = 0x0C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
850 VK_RETURN = 0x0D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
851 VK_SHIFT = 0x10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
852 VK_CONTROL = 0x11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
853 VK_MENU = 0x12, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
854 VK_PAUSE = 0x13, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
855 VK_CAPITAL = 0x14, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
856 VK_KANA = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
857 VK_HANGEUL = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
858 VK_HANGUL = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
859 VK_JUNJA = 0x17, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
860 VK_FINAL = 0x18, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
861 VK_HANJA = 0x19, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
862 VK_KANJI = 0x19, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
863 VK_ESCAPE = 0x1B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
864 VK_CONVERT = 0x1C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
865 VK_NONCONVERT = 0x1D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
866 VK_ACCEPT = 0x1E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
867 VK_MODECHANGE = 0x1F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
868 VK_SPACE = 0x20, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
869 VK_PRIOR = 0x21, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
870 VK_NEXT = 0x22, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
871 VK_END = 0x23, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
872 VK_HOME = 0x24, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
873 VK_LEFT = 0x25, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
874 VK_UP = 0x26, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
875 VK_RIGHT = 0x27, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
876 VK_DOWN = 0x28, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
877 VK_SELECT = 0x29, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
878 VK_PRINT = 0x2A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
879 VK_EXECUTE = 0x2B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
880 VK_SNAPSHOT = 0x2C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
881 VK_INSERT = 0x2D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
882 VK_DELETE = 0x2E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
883 VK_HELP = 0x2F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
884 VK_LWIN = 0x5B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
885 VK_RWIN = 0x5C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
886 VK_APPS = 0x5D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
887 VK_SLEEP = 0x5F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
888 VK_NUMPAD0 = 0x60, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
889 VK_NUMPAD1 = 0x61, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
890 VK_NUMPAD2 = 0x62, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
891 VK_NUMPAD3 = 0x63, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
892 VK_NUMPAD4 = 0x64, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
893 VK_NUMPAD5 = 0x65, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
894 VK_NUMPAD6 = 0x66, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
895 VK_NUMPAD7 = 0x67, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
896 VK_NUMPAD8 = 0x68, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
897 VK_NUMPAD9 = 0x69, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
898 VK_MULTIPLY = 0x6A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
899 VK_ADD = 0x6B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
900 VK_SEPARATOR = 0x6C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
901 VK_SUBTRACT = 0x6D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
902 VK_DECIMAL = 0x6E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
903 VK_DIVIDE = 0x6F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
904 VK_F1 = 0x70, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
905 VK_F2 = 0x71, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
906 VK_F3 = 0x72, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
907 VK_F4 = 0x73, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
908 VK_F5 = 0x74, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
909 VK_F6 = 0x75, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
910 VK_F7 = 0x76, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
911 VK_F8 = 0x77, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
912 VK_F9 = 0x78, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
913 VK_F10 = 0x79, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
914 VK_F11 = 0x7A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
915 VK_F12 = 0x7B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
916 VK_F13 = 0x7C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
917 VK_F14 = 0x7D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
918 VK_F15 = 0x7E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
919 VK_F16 = 0x7F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
920 VK_F17 = 0x80, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
921 VK_F18 = 0x81, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
922 VK_F19 = 0x82, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
923 VK_F20 = 0x83, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
924 VK_F21 = 0x84, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
925 VK_F22 = 0x85, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
926 VK_F23 = 0x86, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
927 VK_F24 = 0x87, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
928 VK_NUMLOCK = 0x90, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
929 VK_SCROLL = 0x91, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
930 VK_OEM_NEC_EQUAL = 0x92, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
931 VK_OEM_FJ_JISHO = 0x92, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
932 VK_OEM_FJ_MASSHOU = 0x93, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
933 VK_OEM_FJ_TOUROKU = 0x94, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
934 VK_OEM_FJ_LOYA = 0x95, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
935 VK_OEM_FJ_ROYA = 0x96, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
936 VK_LSHIFT = 0xA0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
937 VK_RSHIFT = 0xA1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
938 VK_LCONTROL = 0xA2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
939 VK_RCONTROL = 0xA3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
940 VK_LMENU = 0xA4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
941 VK_RMENU = 0xA5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
942 VK_BROWSER_BACK = 0xA6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
943 VK_BROWSER_FORWARD = 0xA7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
944 VK_BROWSER_REFRESH = 0xA8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
945 VK_BROWSER_STOP = 0xA9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
946 VK_BROWSER_SEARCH = 0xAA, |
0 | 947 VK_BROWSER_FAVORITES = 0xAB, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
948 VK_BROWSER_HOME = 0xAC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
949 VK_VOLUME_MUTE = 0xAD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
950 VK_VOLUME_DOWN = 0xAE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
951 VK_VOLUME_UP = 0xAF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
952 VK_MEDIA_NEXT_TRACK = 0xB0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
953 VK_MEDIA_PREV_TRACK = 0xB1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
954 VK_MEDIA_STOP = 0xB2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
955 VK_MEDIA_PLAY_PAUSE = 0xB3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
956 VK_LAUNCH_MAIL = 0xB4, |
0 | 957 VK_LAUNCH_MEDIA_SELECT = 0xB5, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
958 VK_LAUNCH_APP1 = 0xB6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
959 VK_LAUNCH_APP2 = 0xB7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
960 VK_OEM_1 = 0xBA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
961 VK_OEM_PLUS = 0xBB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
962 VK_OEM_COMMA = 0xBC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
963 VK_OEM_MINUS = 0xBD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
964 VK_OEM_PERIOD = 0xBE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
965 VK_OEM_2 = 0xBF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
966 VK_OEM_3 = 0xC0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
967 VK_OEM_4 = 0xDB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
968 VK_OEM_5 = 0xDC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
969 VK_OEM_6 = 0xDD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
970 VK_OEM_7 = 0xDE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
971 VK_OEM_8 = 0xDF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
972 VK_OEM_AX = 0xE1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
973 VK_OEM_102 = 0xE2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
974 VK_ICO_HELP = 0xE3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
975 VK_ICO_00 = 0xE4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
976 VK_PROCESSKEY = 0xE5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
977 VK_ICO_CLEAR = 0xE6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
978 VK_PACKET = 0xE7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
979 VK_OEM_RESET = 0xE9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
980 VK_OEM_JUMP = 0xEA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
981 VK_OEM_PA1 = 0xEB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
982 VK_OEM_PA2 = 0xEC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
983 VK_OEM_PA3 = 0xED, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
984 VK_OEM_WSCTRL = 0xEE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
985 VK_OEM_CUSEL = 0xEF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
986 VK_OEM_ATTN = 0xF0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
987 VK_OEM_FINISH = 0xF1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
988 VK_OEM_COPY = 0xF2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
989 VK_OEM_AUTO = 0xF3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
990 VK_OEM_ENLW = 0xF4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
991 VK_OEM_BACKTAB = 0xF5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
992 VK_ATTN = 0xF6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
993 VK_CRSEL = 0xF7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
994 VK_EXSEL = 0xF8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
995 VK_EREOF = 0xF9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
996 VK_PLAY = 0xFA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
997 VK_ZOOM = 0xFB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
998 VK_NONAME = 0xFC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
999 VK_PA1 = 0xFD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1000 VK_OEM_CLEAR = 0xFE |
0 | 1001 } |
1002 //}}} | |
1003 | |
1004 SHORT GetKeyState(int nVirtKey); | |
1005 //}}} | |
1006 | |
1007 //{{{ system functions | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1008 //const LPTSTR IDC_ARROW = cast(LPTSTR)32512u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1009 //const LPTSTR IDC_IBEAM = cast(LPTSTR)32513u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1010 //const LPTSTR IDC_WAIT = cast(LPTSTR)32514u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1011 //const LPTSTR IDC_CROSS = cast(LPTSTR)32515u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1012 //const LPTSTR IDC_UPARROW = cast(LPTSTR)32516u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1013 //const LPTSTR IDC_SIZE = cast(LPTSTR)32640u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1014 //const LPTSTR IDC_ICON = cast(LPTSTR)32641u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1015 //const LPTSTR IDC_SIZENWSE = cast(LPTSTR)32642u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1016 //const LPTSTR IDC_SIZENESW = cast(LPTSTR)32643u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1017 //const LPTSTR IDC_SIZEWE = cast(LPTSTR)32644u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1018 //const LPTSTR IDC_SIZENS = cast(LPTSTR)32645u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1019 //const LPTSTR IDC_SIZEALL = cast(LPTSTR)32646u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1020 //const LPTSTR IDC_NO = cast(LPTSTR)32648u; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1021 //const LPTSTR IDC_HAND = cast(LPTSTR)32649u; |
0 | 1022 //const LPTSTR IDC_APPSTARTING = cast(LPTSTR)32650u; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1023 //const LPTSTR IDC_HELP = cast(LPTSTR)32651u; |
0 | 1024 |
1025 //const LPTSTR IDI_APPLICATION = cast(LPTSTR)32512; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1026 //const LPTSTR IDI_HAND = cast(LPTSTR)32513; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1027 //const LPTSTR IDI_QUESTION = cast(LPTSTR)32514; |
0 | 1028 //const LPTSTR IDI_EXCLAMATION = cast(LPTSTR)32515; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1029 //const LPTSTR IDI_ASTERISK = cast(LPTSTR)32516; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1030 //const LPTSTR IDI_WINLOGO = cast(LPTSTR)32517; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1031 //const LPTSTR IDI_WARNING = IDI_EXCLAMATION; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1032 //const LPTSTR IDI_ERROR = IDI_HAND; |
0 | 1033 //const LPTSTR IDI_INFORMATION = IDI_ASTERISK; |
1034 | |
1035 enum { | |
1036 OIC_SAMPLE = 32512, | |
1037 OIC_HAND = 32513, | |
1038 OIC_QUES = 32514, | |
1039 OIC_BANG = 32515, | |
1040 OIC_NOTE = 32516, | |
1041 OIC_WINLOGO = 32517, | |
1042 OIC_WARNING = OIC_BANG, | |
1043 OIC_ERROR = OIC_HAND, | |
1044 OIC_INFORMATION = OIC_NOTE | |
1045 } | |
1046 | |
1047 enum { | |
1048 OCR_NORMAL = 32512, | |
1049 OCR_IBEAM = 32513, | |
1050 OCR_WAIT = 32514, | |
1051 OCR_CROSS = 32515, | |
1052 OCR_UP = 32516, | |
1053 OCR_SIZENWSE = 32642, | |
1054 OCR_SIZENESW = 32643, | |
1055 OCR_SIZEWE = 32644, | |
1056 OCR_SIZENS = 32645, | |
1057 OCR_SIZEALL = 32646, | |
1058 OCR_NO = 32648, | |
1059 OCR_HAND = 32649, | |
1060 OCR_APPSTARTING = 32650 | |
1061 } | |
1062 | |
1063 enum { | |
1064 IMAGE_BITMAP = 0, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1065 IMAGE_ICON = 1, |
0 | 1066 IMAGE_CURSOR = 2 |
1067 } | |
1068 | |
1069 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1070 LR_DEFAULTCOLOR = 0x0000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1071 LR_MONOCHROME = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1072 LR_COLOR = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1073 LR_COPYRETURNORG = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1074 LR_COPYDELETEORG = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1075 LR_LOADFROMFILE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1076 LR_LOADTRANSPARENT = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1077 LR_DEFAULTSIZE = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1078 LR_VGACOLOR = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1079 LR_LOADMAP3DCOLORS = 0x1000, |
0 | 1080 LR_CREATEDIBSECTION = 0x2000, |
1081 LR_COPYFROMRESOURCE = 0x4000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1082 LR_SHARED = 0x8000 |
0 | 1083 } |
1084 | |
1085 HANDLE LoadImageW( | |
1086 HINSTANCE hInst, | |
1087 LPCWSTR name, | |
1088 UINT type, | |
1089 int cx, | |
1090 int cy, | |
1091 UINT fuLoad); | |
1092 | |
1093 HICON CreateIconFromResource( | |
1094 BYTE* presbits, | |
1095 DWORD dwResSize, | |
1096 BOOL fIcon, | |
1097 DWORD dwVer); | |
1098 | |
1099 enum { | |
1100 SPI_GETNONCLIENTMETRICS = 0x0029, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1101 SPI_GETWORKAREA = 0x0030, |
0 | 1102 SPI_GETWHEELSCROLLLINES = 0x0068 |
1103 } | |
1104 | |
1105 BOOL SystemParametersInfoW(UINT uiAction, UINT uiParam, VOID* pvParam, UINT fWinIni); | |
1106 | |
1107 enum { | |
1108 COLOR_SCROLLBAR = 0, | |
1109 COLOR_BACKGROUND = 1, | |
1110 COLOR_ACTIVECAPTION = 2, | |
1111 COLOR_INACTIVECAPTION = 3, | |
1112 COLOR_MENU = 4, | |
1113 COLOR_WINDOW = 5, | |
1114 COLOR_WINDOWFRAME = 6, | |
1115 COLOR_MENUTEXT = 7, | |
1116 COLOR_WINDOWTEXT = 8, | |
1117 COLOR_CAPTIONTEXT = 9, | |
1118 COLOR_ACTIVEBORDER = 10, | |
1119 COLOR_INACTIVEBORDER = 11, | |
1120 COLOR_APPWORKSPACE = 12, | |
1121 COLOR_HIGHLIGHT = 13, | |
1122 COLOR_HIGHLIGHTTEXT = 14, | |
1123 COLOR_BTNFACE = 15, | |
1124 COLOR_BTNSHADOW = 16, | |
1125 COLOR_GRAYTEXT = 17, | |
1126 COLOR_BTNTEXT = 18, | |
1127 COLOR_INACTIVECAPTIONTEXT = 19, | |
1128 COLOR_BTNHIGHLIGHT = 20, | |
1129 | |
1130 COLOR_3DDKSHADOW = 21, | |
1131 COLOR_3DLIGHT = 22, | |
1132 COLOR_INFOTEXT = 23, | |
1133 COLOR_INFOBK = 24, | |
1134 | |
1135 COLOR_HOTLIGHT = 26, | |
1136 COLOR_GRADIENTACTIVECAPTION = 27, | |
1137 COLOR_GRADIENTINACTIVECAPTION = 28, | |
1138 COLOR_MENUHILIGHT = 29, | |
1139 COLOR_MENUBAR = 30, | |
1140 | |
1141 COLOR_DESKTOP = COLOR_BACKGROUND, | |
1142 COLOR_3DFACE = COLOR_BTNFACE, | |
1143 COLOR_3DSHADOW = COLOR_BTNSHADOW, | |
1144 COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT, | |
1145 COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT, | |
1146 COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT | |
1147 } | |
1148 | |
1149 DWORD GetSysColor(int nIndex); | |
1150 | |
1151 enum { | |
1152 SM_CXSCREEN = 0, | |
1153 SM_CYSCREEN = 1, | |
1154 SM_CXVSCROLL = 2, | |
1155 SM_CYHSCROLL = 3, | |
1156 SM_CYCAPTION = 4, | |
1157 SM_CXBORDER = 5, | |
1158 SM_CYBORDER = 6, | |
1159 SM_CXDLGFRAME = 7, | |
1160 SM_CYDLGFRAME = 8, | |
1161 SM_CYVTHUMB = 9, | |
1162 SM_CXHTHUMB = 10, | |
1163 SM_CXICON = 11, | |
1164 SM_CYICON = 12, | |
1165 SM_CXCURSOR = 13, | |
1166 SM_CYCURSOR = 14, | |
1167 SM_CYMENU = 15, | |
1168 SM_CXFULLSCREEN = 16, | |
1169 SM_CYFULLSCREEN = 17, | |
1170 SM_CYKANJIWINDOW = 18, | |
1171 SM_MOUSEPRESENT = 19, | |
1172 SM_CYVSCROLL = 20, | |
1173 SM_CXHSCROLL = 21, | |
1174 SM_DEBUG = 22, | |
1175 SM_SWAPBUTTON = 23, | |
1176 SM_RESERVED1 = 24, | |
1177 SM_RESERVED2 = 25, | |
1178 SM_RESERVED3 = 26, | |
1179 SM_RESERVED4 = 27, | |
1180 SM_CXMIN = 28, | |
1181 SM_CYMIN = 29, | |
1182 SM_CXSIZE = 30, | |
1183 SM_CYSIZE = 31, | |
1184 SM_CXFRAME = 32, | |
1185 SM_CYFRAME = 33, | |
1186 SM_CXMINTRACK = 34, | |
1187 SM_CYMINTRACK = 35, | |
1188 SM_CXDOUBLECLK = 36, | |
1189 SM_CYDOUBLECLK = 37, | |
1190 SM_CXICONSPACING = 38, | |
1191 SM_CYICONSPACING = 39, | |
1192 SM_MENUDROPALIGNMENT = 40, | |
1193 SM_PENWINDOWS = 41, | |
1194 SM_DBCSENABLED = 42, | |
1195 SM_CMOUSEBUTTONS = 43, | |
1196 SM_CXFIXEDFRAME = SM_CXDLGFRAME, | |
1197 SM_CYFIXEDFRAME = SM_CYDLGFRAME, | |
1198 SM_CXSIZEFRAME = SM_CXFRAME, | |
1199 SM_CYSIZEFRAME = SM_CYFRAME, | |
1200 SM_SECURE = 44, | |
1201 SM_CXEDGE = 45, | |
1202 SM_CYEDGE = 46, | |
1203 SM_CXMINSPACING = 47, | |
1204 SM_CYMINSPACING = 48, | |
1205 SM_CXSMICON = 49, | |
1206 SM_CYSMICON = 50, | |
1207 SM_CYSMCAPTION = 51, | |
1208 SM_CXSMSIZE = 52, | |
1209 SM_CYSMSIZE = 53, | |
1210 SM_CXMENUSIZE = 54, | |
1211 SM_CYMENUSIZE = 55, | |
1212 SM_ARRANGE = 56, | |
1213 SM_CXMINIMIZED = 57, | |
1214 SM_CYMINIMIZED = 58, | |
1215 SM_CXMAXTRACK = 59, | |
1216 SM_CYMAXTRACK = 60, | |
1217 SM_CXMAXIMIZED = 61, | |
1218 SM_CYMAXIMIZED = 62, | |
1219 SM_NETWORK = 63, | |
1220 SM_CLEANBOOT = 67, | |
1221 SM_CXDRAG = 68, | |
1222 SM_CYDRAG = 69, | |
1223 SM_SHOWSOUNDS = 70, | |
1224 SM_CXMENUCHECK = 71, | |
1225 SM_CYMENUCHECK = 72, | |
1226 SM_SLOWMACHINE = 73, | |
1227 SM_MIDEASTENABLED = 74, | |
1228 SM_MOUSEWHEELPRESENT = 75, | |
1229 SM_XVIRTUALSCREEN = 76, | |
1230 SM_YVIRTUALSCREEN = 77, | |
1231 SM_CXVIRTUALSCREEN = 78, | |
1232 SM_CYVIRTUALSCREEN = 79, | |
1233 SM_CMONITORS = 80, | |
1234 SM_SAMEDISPLAYFORMAT = 81, | |
1235 SM_IMMENABLED = 82, | |
1236 SM_CXFOCUSBORDER = 83, | |
1237 SM_CYFOCUSBORDER = 84, | |
1238 SM_TABLETPC = 86, | |
1239 SM_MEDIACENTER = 87, | |
1240 SM_STARTER = 88, | |
1241 SM_SERVERR2 = 89 | |
1242 } | |
1243 | |
1244 int GetSystemMetrics(int nIndex); | |
1245 | |
1246 VOID GetSystemInfo(SYSTEM_INFO* lpSystemInfo); | |
1247 | |
1248 BOOL GetVersionExW(OSVERSIONINFO* lpVersionInformation); | |
1249 | |
1250 HMODULE GetModuleHandleW(LPCWSTR lpModuleName); | |
1251 | |
1252 HMODULE LoadLibraryW(LPCWSTR lpLibFileName); | |
1253 | |
1254 FARPROC GetProcAddress(HMODULE hModule, LPCSTR lpProcName); | |
1255 | |
1256 //Requires Internet Explorer 4.0 (but will work on Windows 95 with IE 4) | |
1257 BOOL SHGetSpecialFolderPathW(HWND hWndOwner, LPWSTR lpszPath, int nFolder, BOOL fCreate); | |
1258 | |
1259 BOOL QueryPerformanceFrequency(ulong* lpFrequency); | |
1260 | |
1261 BOOL QueryPerformanceCounter(ulong* lpPerformanceCount); | |
1262 | |
1263 VOID GetSystemTimeAsFileTime(FILETIME* lpSystemTimeAsFileTime); | |
1264 | |
1265 BOOL SystemTimeToFileTime(SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime); | |
1266 | |
1267 HANDLE GetCurrentThread(); | |
1268 | |
1269 VOID Sleep(DWORD dwMilliseconds); | |
1270 | |
1271 BOOL GetProcessAffinityMask( | |
1272 HANDLE hProcess, | |
1273 ULONG_PTR* lpProcessAffinityMask, | |
1274 ULONG_PTR* lpSystemAffinityMask); | |
1275 | |
1276 ULONG_PTR SetThreadAffinityMask(HANDLE hThread, ULONG_PTR dwThreadAffinityMask); | |
1277 //}}} | |
1278 | |
1279 //{{{ file functions | |
1280 | |
1281 BOOL GetFileSizeEx(HANDLE hFile, long* lpFileSize); | |
1282 | |
1283 BOOL ReadFile( | |
1284 HANDLE hFile, | |
1285 VOID* lpBuffer, | |
1286 DWORD nNumberOfBytesToRead, | |
1287 DWORD* lpNumberOfBytesRead, | |
1288 OVERLAPPED* lpOverlapped); | |
1289 | |
1290 BOOL WriteFile( | |
1291 HANDLE hFile, | |
1292 VOID* lpBuffer, | |
1293 DWORD nNumberOfBytesToWrite, | |
1294 DWORD* lpNumberOfBytesWritten, | |
1295 OVERLAPPED* lpOverlapped); | |
1296 //}}} | |
1297 | |
1298 //{{{ console functions | |
1299 BOOL AllocConsole(); | |
1300 | |
1301 BOOL FreeConsole(); | |
1302 | |
1303 BOOL GetConsoleMode(HANDLE hConsoleHandle, DWORD* lpMode); | |
1304 | |
1305 BOOL SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode); | |
1306 | |
1307 DWORD GetConsoleTitleW(LPWSTR lpConsoleTitle, DWORD nSize); | |
1308 | |
1309 BOOL SetConsoleTitleW(LPCWSTR lpConsoleTitle); | |
1310 | |
1311 BOOL ReadConsoleW( | |
1312 HANDLE hConsoleInput, | |
1313 LPWSTR lpBuffer, | |
1314 DWORD nNumberOfCharsToRead, | |
1315 DWORD* lpNumberOfCharsRead, | |
1316 VOID* lpReserved); | |
1317 | |
1318 BOOL WriteConsoleW( | |
1319 HANDLE hConsoleOutput, | |
1320 LPCWSTR lpBuffer, | |
1321 DWORD nNumberOfCharsToWrite, | |
1322 DWORD* lpNumberOfCharsWritten, | |
1323 VOID* lpReserved); | |
1324 | |
1325 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1326 FOREGROUND_BLUE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1327 FOREGROUND_GREEN = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1328 FOREGROUND_RED = 0x0004, |
0 | 1329 FOREGROUND_INTENSITY = 0x0008, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1330 BACKGROUND_BLUE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1331 BACKGROUND_GREEN = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1332 BACKGROUND_RED = 0x0040, |
0 | 1333 BACKGROUND_INTENSITY = 0x0080 |
1334 } | |
1335 | |
1336 BOOL SetConsoleTextAttribute(HANDLE hConsoleOutput, WORD wAttributes); | |
1337 | |
1338 BOOL GetConsoleScreenBufferInfo( | |
1339 HANDLE hConsoleOutput, | |
1340 CONSOLE_SCREEN_BUFFER_INFO* lpConsoleScreenBufferInfo); | |
1341 | |
1342 BOOL SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput); | |
1343 | |
1344 enum { | |
1345 STD_INPUT_HANDLE = -10, | |
1346 STD_OUTPUT_HANDLE = -11, | |
1347 STD_ERROR_HANDLE = -12 | |
1348 } | |
1349 | |
1350 HANDLE GetStdHandle(DWORD nStdHandle); | |
1351 | |
1352 UINT GetConsoleCP(); | |
1353 | |
1354 UINT GetConsoleOutputCP(); | |
1355 | |
1356 //}}} | |
1357 | |
1358 //{{{ COM functions | |
1359 enum { | |
1360 COINIT_APARTMENTTHREADED = 0x2, | |
1361 } | |
1362 | |
1363 HRESULT CoInitializeEx(VOID* pvReserved, DWORD dwCoInit); | |
1364 void CoUninitialize(); | |
1365 | |
1366 VOID* CoTaskMemAlloc(SIZE_T cb); | |
1367 VOID* CoTaskMemRealloc(VOID* pv, SIZE_T cb); | |
1368 void CoTaskMemFree(VOID* pv); | |
1369 | |
1370 enum { | |
1371 BIF_RETURNONLYFSDIRS = 0x0001, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1372 BIF_EDITBOX = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1373 BIF_NEWDIALOGSTYLE = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1374 BIF_USENEWUI = (BIF_NEWDIALOGSTYLE | BIF_EDITBOX) |
0 | 1375 } |
1376 | |
21
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1377 enum { |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1378 BFFM_INITIALIZED = 1, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1379 BFFM_SELCHANGED = 2, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1380 BFFM_VALIDATEFAILEDA = 3, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1381 BFFM_VALIDATEFAILEDW = 4, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1382 BFFM_IUNKNOWN = 5, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1383 |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1384 BFFM_SETSTATUSTEXTA = WM_USER + 100, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1385 BFFM_ENABLEOK = WM_USER + 101, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1386 BFFM_SETSELECTIONA = WM_USER + 102, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1387 BFFM_SETSELECTIONW = WM_USER + 103, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1388 BFFM_SETSTATUSTEXTW = WM_USER + 104, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1389 BFFM_SETOKTEXT = WM_USER + 105, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1390 BFFM_SETEXPANDED = WM_USER + 106, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1391 } |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1392 |
0 | 1393 ITEMIDLIST* SHBrowseForFolderW(BROWSEINFO* lpbi); |
1394 | |
1395 BOOL SHGetPathFromIDListW(ITEMIDLIST* pidl, LPWSTR pszPath); | |
1396 | |
1397 HRESULT SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath); | |
1398 | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1399 HRESULT SHGetDesktopFolder(IShellFolder* ppshf); |
0 | 1400 |
1401 struct GUID { | |
1402 align(1): | |
1403 uint Data1; | |
1404 ushort Data2; | |
1405 ushort Data3; | |
1406 ubyte[8] Data4; | |
1407 } | |
1408 alias GUID IID; | |
1409 alias GUID CLSID; | |
1410 | |
1411 interface IUnknown { | |
1412 HRESULT QueryInterface(IID* riid, void** ppvObject); | |
1413 ULONG AddRef(); | |
1414 ULONG Release(); | |
1415 } | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1416 alias void IBindCtx; |
0 | 1417 interface IShellFolder : IUnknown { |
1418 HRESULT ParseDisplayName( | |
1419 HWND hwnd, | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1420 IBindCtx* pbc, |
0 | 1421 wchar* pszDisplayName, |
1422 ULONG* pchEaten, | |
1423 ITEMIDLIST** ppidl, | |
1424 ULONG* pdwAttributes); | |
1425 | |
1426 //other methods omitted | |
1427 } | |
1428 //}}} | |
1429 | |
1430 //{{{ Multimedia functions | |
1431 alias uint MMRESULT; | |
1432 alias HANDLE HWAVEOUT; | |
1433 struct TIMECAPS { | |
1434 UINT wPeriodMin; | |
1435 UINT wPeriodMax; | |
1436 } | |
1437 DWORD timeGetTime(); | |
1438 MMRESULT timeGetDevCaps(TIMECAPS* ptc, UINT cbtc); | |
1439 MMRESULT timeBeginPeriod(UINT uPeriod); | |
1440 MMRESULT timeEndPeriod(UINT uPeriod); | |
1441 | |
1442 struct WAVEHDR { | |
1443 LPSTR lpData; | |
1444 DWORD dwBufferLength; | |
1445 DWORD dwBytesRecorded; | |
1446 ULONG_PTR dwUser; | |
1447 DWORD dwFlags; | |
1448 DWORD dwLoops; | |
1449 WAVEHDR* lpNext; | |
1450 ULONG_PTR reserved; | |
1451 } | |
1452 enum { | |
1453 WHDR_DONE = 0x00000001, | |
1454 WHDR_PREPARED = 0x00000002, | |
1455 WHDR_BEGINLOOP = 0x00000004, | |
1456 WHDR_ENDLOOP = 0x00000008, | |
1457 WHDR_INQUEUE = 0x00000010 | |
1458 } | |
1459 alias uint MMVERSION; | |
1460 struct WAVEOUTCAPSW { | |
1461 WORD wMid; | |
1462 WORD wPid; | |
1463 MMVERSION vDriverVersion; | |
1464 WCHAR[32] szPname; | |
1465 DWORD dwFormats; | |
1466 WORD wChannels; | |
1467 WORD wReserved1; | |
1468 DWORD dwSupport; | |
1469 } | |
1470 struct MMTIME { | |
1471 UINT wType; | |
1472 union _u { | |
1473 DWORD ms; | |
1474 DWORD sample; | |
1475 DWORD cb; | |
1476 DWORD ticks; | |
1477 | |
1478 struct _smpte { | |
1479 BYTE hour; | |
1480 BYTE min; | |
1481 BYTE sec; | |
1482 BYTE frame; | |
1483 BYTE fps; | |
1484 BYTE dummy; | |
1485 BYTE pad[2]; | |
1486 } | |
1487 _smpte smpte; | |
1488 | |
1489 struct _midi { | |
1490 DWORD songptrpos; | |
1491 } | |
1492 _midi midi; | |
1493 } | |
1494 _u u; | |
1495 } | |
1496 enum { | |
1497 TIME_MS = 0x0001, | |
1498 TIME_SAMPLES = 0x0002, | |
1499 TIME_BYTES = 0x0004, | |
1500 TIME_SMPTE = 0x0008, | |
1501 TIME_MIDI = 0x0010, | |
1502 TIME_TICKS = 0x0020 | |
1503 } | |
1504 struct WAVEFORMATEX { | |
1505 WORD wFormatTag; | |
1506 WORD nChannels; | |
1507 DWORD nSamplesPerSec; | |
1508 DWORD nAvgBytesPerSec; | |
1509 WORD nBlockAlign; | |
1510 WORD wBitsPerSample; | |
1511 WORD cbSize; | |
1512 | |
1513 } | |
1514 | |
1515 MMRESULT waveOutGetVolume(HWAVEOUT hwo, DWORD* pdwVolume); | |
1516 MMRESULT waveOutSetVolume(HWAVEOUT hwo, DWORD dwVolume); | |
1517 MMRESULT waveOutOpen( | |
1518 HWAVEOUT* phwo, | |
1519 UINT uDeviceID, | |
1520 WAVEFORMATEX* pwfx, | |
1521 ULONG_PTR dwCallback, | |
1522 ULONG_PTR dwInstance, | |
1523 DWORD fdwOpen); | |
1524 MMRESULT waveOutClose(HWAVEOUT hwo); | |
1525 MMRESULT waveOutPrepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1526 MMRESULT waveOutUnprepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1527 MMRESULT waveOutWrite(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1528 MMRESULT waveOutPause(HWAVEOUT hwo); | |
1529 MMRESULT waveOutRestart(HWAVEOUT hwo); | |
1530 MMRESULT waveOutReset(HWAVEOUT hwo); | |
1531 MMRESULT waveOutBreakLoop(HWAVEOUT hwo); | |
1532 MMRESULT waveOutGetPosition(HWAVEOUT hwo, MMTIME* pmmt, UINT cbmmt); | |
1533 MMRESULT waveOutGetPitch(HWAVEOUT hwo, DWORD* pdwPitch); | |
1534 MMRESULT waveOutSetPitch(HWAVEOUT hwo, DWORD dwPitch); | |
1535 MMRESULT waveOutGetPlaybackRate(HWAVEOUT hwo, DWORD* pdwRate); | |
1536 MMRESULT waveOutSetPlaybackRate(HWAVEOUT hwo, DWORD dwRate); | |
1537 | |
1538 //}}} | |
1539 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1540 //{{{ alias ...W -> ... |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1541 alias MessageBoxW MessageBox; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1542 alias RegisterClassExW RegisterClassEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1543 alias CreateWindowExW CreateWindowEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1544 alias DefWindowProcW DefWindowProc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1545 alias GetWindowLongW GetWindowLong; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1546 alias SetWindowLongW SetWindowLong; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1547 alias GetWindowLongPtrW GetWindowLongPtr; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1548 alias SetWindowLongPtrW SetWindowLongPtr; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1549 alias GetWindowTextW GetWindowText; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1550 alias SetWindowTextW SetWindowText; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1551 alias GetWindowModuleFileNameW GetWindowModuleFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1552 alias SetPropW SetProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1553 alias GetPropW GetProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1554 alias RemovePropW RemoveProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1555 alias GetOpenFileNameW GetOpenFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1556 alias GetSaveFileNameW GetSaveFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1557 alias GetMessageW GetMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1558 alias DispatchMessageW DispatchMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1559 alias PostMessageW PostMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1560 alias SendMessageW SendMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1561 alias LoadImageW LoadImage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1562 alias GetObjectW GetObject; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1563 alias EnumFontFamiliesExW EnumFontFamiliesEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1564 alias SystemParametersInfoW SystemParametersInfo; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1565 alias GetVersionExW GetVersionEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1566 alias GetModuleHandleW GetModuleHandle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1567 alias LoadLibraryW LoadLibrary; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1568 alias SHGetSpecialFolderPathW SHGetSpecialFolderPath; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1569 alias GetConsoleTitleW GetConsoleTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1570 alias SetConsoleTitleW SetConsoleTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1571 alias ReadConsoleW ReadConsole; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1572 alias WriteConsoleW WriteConsole; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1573 alias SHBrowseForFolderW SHBrowseForFolder; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1574 alias SHGetPathFromIDListW SHGetPathFromIDList; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1575 alias SHGetFolderPathW SHGetFolderPath; |
21
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1576 alias BFFM_VALIDATEFAILEDW BFFM_VALIDATEFAILED; |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1577 alias BFFM_SETSELECTIONW BFFM_SETSELECTION; |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1578 alias BFFM_SETSTATUSTEXTW BFFM_SETSTATUSTEXT; |
0 | 1579 |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1580 alias LOGFONTW LOGFONT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1581 alias NONCLIENTMETRICSW NONCLIENTMETRICS; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1582 alias ENUMLOGFONTEXW ENUMLOGFONTEX; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1583 alias TEXTMETRICW TEXTMETRIC; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1584 alias OSVERSIONINFOW OSVERSIONINFO; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1585 //}}} |
0 | 1586 |
1587 struct POINT { | |
1588 LONG x; | |
1589 LONG y; | |
1590 } | |
1591 struct SIZE { | |
1592 LONG cx; | |
1593 LONG cy; | |
1594 } | |
1595 struct RECT { | |
1596 LONG left; | |
1597 LONG top; | |
1598 LONG right; | |
1599 LONG bottom; | |
1600 } | |
1601 struct BLENDFUNCTION { | |
1602 BYTE BlendOp; | |
1603 BYTE BlendFlags; | |
1604 BYTE SourceConstantAlpha; | |
1605 BYTE AlphaFormat; | |
1606 } | |
1607 const int LF_FACESIZE = 32; | |
1608 struct LOGFONTW { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1609 LONG lfHeight; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1610 LONG lfWidth; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1611 LONG lfEscapement; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1612 LONG lfOrientation; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1613 LONG lfWeight; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1614 BYTE lfItalic; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1615 BYTE lfUnderline; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1616 BYTE lfStrikeOut; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1617 BYTE lfCharSet; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1618 BYTE lfOutPrecision; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1619 BYTE lfClipPrecision; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1620 BYTE lfQuality; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1621 BYTE lfPitchAndFamily; |
0 | 1622 WCHAR[LF_FACESIZE] lfFaceName; |
1623 } | |
1624 struct NONCLIENTMETRICSW { | |
1625 UINT cbSize; | |
1626 int iBorderWidth; | |
1627 int iScrollWidth; | |
1628 int iScrollHeight; | |
1629 int iCaptionWidth; | |
1630 int iCaptionHeight; | |
1631 LOGFONTW lfCaptionFont; | |
1632 int iSmCaptionWidth; | |
1633 int iSmCaptionHeight; | |
1634 LOGFONTW lfSmCaptionFont; | |
1635 int iMenuWidth; | |
1636 int iMenuHeight; | |
1637 LOGFONTW lfMenuFont; | |
1638 LOGFONTW lfStatusFont; | |
1639 LOGFONTW lfMessageFont; | |
1640 } | |
1641 const int LF_FULLFACESIZE = 64; | |
1642 struct ENUMLOGFONTEXW { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1643 LOGFONT elfLogFont; |
0 | 1644 WCHAR[LF_FULLFACESIZE] elfFullName; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1645 WCHAR[LF_FACESIZE] elfStyle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1646 WCHAR[LF_FACESIZE] elfScript; |
0 | 1647 } |
1648 struct TEXTMETRICW { | |
1649 LONG tmHeight; | |
1650 LONG tmAscent; | |
1651 LONG tmDescent; | |
1652 LONG tmInternalLeading; | |
1653 LONG tmExternalLeading; | |
1654 LONG tmAveCharWidth; | |
1655 LONG tmMaxCharWidth; | |
1656 LONG tmWeight; | |
1657 LONG tmOverhang; | |
1658 LONG tmDigitizedAspectX; | |
1659 LONG tmDigitizedAspectY; | |
1660 WCHAR tmFirstChar; | |
1661 WCHAR tmLastChar; | |
1662 WCHAR tmDefaultChar; | |
1663 WCHAR tmBreakChar; | |
1664 BYTE tmItalic; | |
1665 BYTE tmUnderlined; | |
1666 BYTE tmStruckOut; | |
1667 BYTE tmPitchAndFamily; | |
1668 BYTE tmCharSet; | |
1669 } | |
1670 struct RGBQUAD { | |
1671 BYTE rgbBlue; | |
1672 BYTE rgbGreen; | |
1673 BYTE rgbRed; | |
1674 BYTE rgbReserved; | |
1675 } | |
1676 struct BITMAPINFO { | |
1677 BITMAPINFOHEADER bmiHeader; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1678 RGBQUAD[1] bmiColors; |
0 | 1679 } |
1680 struct BITMAPINFOHEADER { | |
1681 DWORD biSize; | |
1682 LONG biWidth; | |
1683 LONG biHeight; | |
1684 WORD biPlanes; | |
1685 WORD biBitCount; | |
1686 DWORD biCompression; | |
1687 DWORD biSizeImage; | |
1688 LONG biXPelsPerMeter; | |
1689 LONG biYPelsPerMeter; | |
1690 DWORD biClrUsed; | |
1691 DWORD biClrImportant; | |
1692 } | |
1693 struct DIBSECTION { | |
1694 BITMAP dsBm; | |
1695 BITMAPINFOHEADER dsBmih; | |
1696 DWORD[3] dsBitfields; | |
1697 HANDLE dshSection; | |
1698 DWORD dsOffset; | |
1699 } | |
1700 struct BITMAP { | |
1701 LONG bmType; | |
1702 LONG bmWidth; | |
1703 LONG bmHeight; | |
1704 LONG bmWidthBytes; | |
1705 WORD bmPlanes; | |
1706 WORD bmBitsPixel; | |
1707 VOID* bmBits; | |
1708 } | |
1709 struct MSG { | |
1710 HWND hWnd; | |
1711 UINT message; | |
1712 WPARAM wParam; | |
1713 LPARAM lParam; | |
1714 DWORD time; | |
1715 POINT pt; | |
1716 } | |
1717 struct WNDCLASSEX { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1718 UINT cbSize; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1719 UINT style; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1720 WNDPROC lpfnWndProc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1721 int cbClsExtra; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1722 int cbWndExtra; |
0 | 1723 HINSTANCE hInstance; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1724 HICON hIcon; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1725 HCURSOR hCursor; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1726 HBRUSH hbrBackground; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1727 LPCTSTR lpszMenuName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1728 LPCTSTR lpszClassName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1729 HICON hIconSm; |
0 | 1730 } |
1731 struct WINDOWINFO { | |
1732 DWORD cbSize; | |
1733 RECT rcWindow; | |
1734 RECT rcClient; | |
1735 DWORD dwStyle; | |
1736 DWORD dwExStyle; | |
1737 DWORD dwWindowStatus; | |
1738 UINT cxWindowBorders; | |
1739 UINT cyWindowBorders; | |
1740 ATOM atomWindowType; | |
1741 WORD wCreatorVersion; | |
1742 } | |
1743 struct PAINTSTRUCT { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1744 HDC hdc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1745 BOOL fErase; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1746 RECT rcPaint; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1747 BOOL fRestore; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1748 BOOL fIncUpdate; |
0 | 1749 BYTE[32] rgbReserved; |
1750 } | |
1751 struct TRACKMOUSEEVENT { | |
1752 DWORD cbSize; | |
1753 DWORD dwFlags; | |
1754 HWND hWndTrack; | |
1755 DWORD dwHoverTime; | |
1756 } | |
1757 struct OPENFILENAME { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1758 DWORD lStructSize; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1759 HWND hWndOwner; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1760 HINSTANCE hInstance; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1761 LPCTSTR lpstrFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1762 LPTSTR lpstrCustomFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1763 DWORD nMaxCustFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1764 DWORD nFilterIndex; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1765 LPTSTR lpstrFile; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1766 DWORD nMaxFile; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1767 LPTSTR lpstrFileTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1768 DWORD nMaxFileTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1769 LPCTSTR lpstrInitialDir; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1770 LPCTSTR lpstrTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1771 DWORD Flags; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1772 WORD nFileOffset; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1773 WORD nFileExtension; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1774 LPCTSTR lpstrDefExt; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1775 LPARAM lCustData; |
0 | 1776 LPOFNHOOKPROC lpfnHook; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1777 LPCTSTR lpTemplateName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1778 // if(_WIN32_WINNT >= 0x0500) |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1779 //void* pvReserved; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1780 //DWORD dwReserved; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1781 //DWORD FlagsEx; |
0 | 1782 } |
1783 struct SHITEMID { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1784 USHORT cb; |
0 | 1785 BYTE[1] abID; |
1786 } | |
1787 struct ITEMIDLIST { | |
1788 SHITEMID mkid; | |
1789 } | |
1790 struct BROWSEINFO { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1791 HWND hwndOwner; |
0 | 1792 ITEMIDLIST* pidlRoot; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1793 LPTSTR pszDisplayName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1794 LPCTSTR lpszTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1795 UINT ulFlags; |
0 | 1796 BFFCALLBACK lpfn; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1797 LPARAM lParam; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1798 int iImage; |
0 | 1799 } |
1800 struct OVERLAPPED { | |
1801 ULONG_PTR Internal; | |
1802 ULONG_PTR InternalHigh; | |
1803 union { | |
1804 struct { | |
1805 DWORD Offset; | |
1806 DWORD OffsetHigh; | |
1807 } | |
1808 | |
1809 VOID* Pointer; | |
1810 } | |
1811 | |
1812 HANDLE hEvent; | |
1813 } | |
1814 struct OSVERSIONINFOW { | |
1815 DWORD dwOSVersionInfoSize; | |
1816 DWORD dwMajorVersion; | |
1817 DWORD dwMinorVersion; | |
1818 DWORD dwBuildNumber; | |
1819 DWORD dwPlatformId; | |
1820 WCHAR[128] szCSDVersion; | |
1821 } | |
1822 struct SYSTEM_INFO { | |
1823 WORD wProcessorArchitecture; | |
1824 WORD wReserved; | |
1825 DWORD dwPageSize; | |
1826 VOID* lpMinimumApplicationAddress; | |
1827 VOID* lpMaximumApplicationAddress; | |
1828 ULONG_PTR dwActiveProcessorMask; | |
1829 DWORD dwNumberOfProcessors; | |
1830 DWORD dwProcessorType; | |
1831 DWORD dwAllocationGranularity; | |
1832 WORD wProcessorLevel; | |
1833 WORD wProcessorRevision; | |
1834 } | |
1835 struct CONSOLE_SCREEN_BUFFER_INFO { | |
1836 COORD dwSize; | |
1837 COORD dwCursorPosition; | |
1838 WORD wAttributes; | |
1839 SMALL_RECT srWindow; | |
1840 COORD dwMaximumWindowSize; | |
1841 } | |
1842 struct FILETIME { | |
1843 DWORD dwLowDateTime; | |
1844 DWORD dwHighDateTime; | |
1845 } | |
1846 struct SYSTEMTIME { | |
1847 WORD wYear; | |
1848 WORD wMonth; | |
1849 WORD wDayOfWeek; | |
1850 WORD wDay; | |
1851 WORD wHour; | |
1852 WORD wMinute; | |
1853 WORD wSecond; | |
1854 WORD wMilliseconds; | |
1855 } | |
1856 struct COORD { | |
1857 SHORT X; | |
1858 SHORT Y; | |
1859 } | |
1860 struct SMALL_RECT { | |
1861 SHORT Left; | |
1862 SHORT Top; | |
1863 SHORT Right; | |
1864 SHORT Bottom; | |
1865 } | |
1866 |