Widow – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Runtime.InteropServices; |
||
3 | using System.Text; |
||
4 | |||
5 | namespace Widow |
||
6 | { |
||
7 | public static class Natives |
||
8 | { |
||
9 | #region Public Enums, Properties and Fields |
||
10 | |||
11 | /// <summary> |
||
12 | /// Windows Messages |
||
13 | /// Defined in winuser.h from Windows SDK v6.1 |
||
14 | /// Documentation pulled from MSDN. |
||
15 | /// </summary> |
||
16 | public enum WM : uint |
||
17 | { |
||
18 | /// <summary> |
||
19 | /// The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message |
||
20 | /// that the recipient window will ignore. |
||
21 | /// </summary> |
||
22 | NULL = 0x0000, |
||
23 | |||
24 | /// <summary> |
||
25 | /// The WM_CREATE message is sent when an application requests that a window be created by calling the CreateWindowEx |
||
26 | /// or CreateWindow function. (The message is sent before the function returns.) The window procedure of the new window |
||
27 | /// receives this message after the window is created, but before the window becomes visible. |
||
28 | /// </summary> |
||
29 | CREATE = 0x0001, |
||
30 | |||
31 | /// <summary> |
||
32 | /// The WM_DESTROY message is sent when a window is being destroyed. It is sent to the window procedure of the window |
||
33 | /// being destroyed after the window is removed from the screen. |
||
34 | /// This message is sent first to the window being destroyed and then to the child windows (if any) as they are |
||
35 | /// destroyed. During the processing of the message, it can be assumed that all child windows still exist. |
||
36 | /// /// |
||
37 | /// </summary> |
||
38 | DESTROY = 0x0002, |
||
39 | |||
40 | /// <summary> |
||
41 | /// The WM_MOVE message is sent after a window has been moved. |
||
42 | /// </summary> |
||
43 | MOVE = 0x0003, |
||
44 | |||
45 | /// <summary> |
||
46 | /// The WM_SIZE message is sent to a window after its size has changed. |
||
47 | /// </summary> |
||
48 | SIZE = 0x0005, |
||
49 | |||
50 | /// <summary> |
||
51 | /// The WM_ACTIVATE message is sent to both the window being activated and the window being deactivated. If the windows |
||
52 | /// use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window |
||
53 | /// being deactivated, then to the window procedure of the top-level window being activated. If the windows use |
||
54 | /// different input queues, the message is sent asynchronously, so the window is activated immediately. |
||
55 | /// </summary> |
||
56 | ACTIVATE = 0x0006, |
||
57 | |||
58 | /// <summary> |
||
59 | /// The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus. |
||
60 | /// </summary> |
||
61 | SETFOCUS = 0x0007, |
||
62 | |||
63 | /// <summary> |
||
64 | /// The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard focus. |
||
65 | /// </summary> |
||
66 | KILLFOCUS = 0x0008, |
||
67 | |||
68 | /// <summary> |
||
69 | /// The WM_ENABLE message is sent when an application changes the enabled state of a window. It is sent to the window |
||
70 | /// whose enabled state is changing. This message is sent before the EnableWindow function returns, but after the |
||
71 | /// enabled state (WS_DISABLED style bit) of the window has changed. |
||
72 | /// </summary> |
||
73 | ENABLE = 0x000A, |
||
74 | |||
75 | /// <summary> |
||
76 | /// An application sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn or to |
||
77 | /// prevent changes in that window from being redrawn. |
||
78 | /// </summary> |
||
79 | SETREDRAW = 0x000B, |
||
80 | |||
81 | /// <summary> |
||
82 | /// An application sends a WM_SETTEXT message to set the text of a window. |
||
83 | /// </summary> |
||
84 | SETTEXT = 0x000C, |
||
85 | |||
86 | /// <summary> |
||
87 | /// An application sends a WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by |
||
88 | /// the caller. |
||
89 | /// </summary> |
||
90 | GETTEXT = 0x000D, |
||
91 | |||
92 | /// <summary> |
||
93 | /// An application sends a WM_GETTEXTLENGTH message to determine the length, in characters, of the text associated with |
||
94 | /// a window. |
||
95 | /// </summary> |
||
96 | GETTEXTLENGTH = 0x000E, |
||
97 | |||
98 | /// <summary> |
||
99 | /// The WM_PAINT message is sent when the system or another application makes a request to paint a portion of an |
||
100 | /// application's window. The message is sent when the UpdateWindow or RedrawWindow function is called, or by the |
||
101 | /// DispatchMessage function when the application obtains a WM_PAINT message by using the GetMessage or PeekMessage |
||
102 | /// function. |
||
103 | /// </summary> |
||
104 | PAINT = 0x000F, |
||
105 | |||
106 | /// <summary> |
||
107 | /// The WM_CLOSE message is sent as a signal that a window or an application should terminate. |
||
108 | /// </summary> |
||
109 | CLOSE = 0x0010, |
||
110 | |||
111 | /// <summary> |
||
112 | /// The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of |
||
113 | /// the system shutdown functions. If any application returns zero, the session is not ended. The system stops sending |
||
114 | /// WM_QUERYENDSESSION messages as soon as one application returns zero. |
||
115 | /// After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the |
||
116 | /// results of the WM_QUERYENDSESSION message. |
||
117 | /// </summary> |
||
118 | QUERYENDSESSION = 0x0011, |
||
119 | |||
120 | /// <summary> |
||
121 | /// The WM_QUERYOPEN message is sent to an icon when the user requests that the window be restored to its previous size |
||
122 | /// and position. |
||
123 | /// </summary> |
||
124 | QUERYOPEN = 0x0013, |
||
125 | |||
126 | /// <summary> |
||
127 | /// The WM_ENDSESSION message is sent to an application after the system processes the results of the |
||
128 | /// WM_QUERYENDSESSION message. The WM_ENDSESSION message informs the application whether the session is ending. |
||
129 | /// </summary> |
||
130 | ENDSESSION = 0x0016, |
||
131 | |||
132 | /// <summary> |
||
133 | /// The WM_QUIT message indicates a request to terminate an application and is generated when the application calls the |
||
134 | /// PostQuitMessage function. It causes the GetMessage function to return zero. |
||
135 | /// </summary> |
||
136 | QUIT = 0x0012, |
||
137 | |||
138 | /// <summary> |
||
139 | /// The WM_ERASEBKGND message is sent when the window background must be erased (for example, when a window is |
||
140 | /// resized). The message is sent to prepare an invalidated portion of a window for painting. |
||
141 | /// </summary> |
||
142 | ERASEBKGND = 0x0014, |
||
143 | |||
144 | /// <summary> |
||
145 | /// This message is sent to all top-level windows when a change is made to a system color setting. |
||
146 | /// </summary> |
||
147 | SYSCOLORCHANGE = 0x0015, |
||
148 | |||
149 | /// <summary> |
||
150 | /// The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown. |
||
151 | /// </summary> |
||
152 | SHOWWINDOW = 0x0018, |
||
153 | |||
154 | /// <summary> |
||
155 | /// An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI |
||
156 | /// file. The SystemParametersInfo function sends this message after an application uses the function to change a |
||
157 | /// setting in WIN.INI. |
||
158 | /// Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. |
||
159 | /// Applications should use the WM_SETTINGCHANGE message. |
||
160 | /// </summary> |
||
161 | WININICHANGE = 0x001A, |
||
162 | |||
163 | /// <summary> |
||
164 | /// An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI |
||
165 | /// file. The SystemParametersInfo function sends this message after an application uses the function to change a |
||
166 | /// setting in WIN.INI. |
||
167 | /// Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. |
||
168 | /// Applications should use the WM_SETTINGCHANGE message. |
||
169 | /// </summary> |
||
170 | SETTINGCHANGE = WININICHANGE, |
||
171 | |||
172 | /// <summary> |
||
173 | /// The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings. |
||
174 | /// </summary> |
||
175 | DEVMODECHANGE = 0x001B, |
||
176 | |||
177 | /// <summary> |
||
178 | /// The WM_ACTIVATEAPP message is sent when a window belonging to a different application than the active window is |
||
179 | /// about to be activated. The message is sent to the application whose window is being activated and to the |
||
180 | /// application whose window is being deactivated. |
||
181 | /// </summary> |
||
182 | ACTIVATEAPP = 0x001C, |
||
183 | |||
184 | /// <summary> |
||
185 | /// An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of |
||
186 | /// font resources. |
||
187 | /// </summary> |
||
188 | FONTCHANGE = 0x001D, |
||
189 | |||
190 | /// <summary> |
||
191 | /// A message that is sent whenever there is a change in the system time. |
||
192 | /// </summary> |
||
193 | TIMECHANGE = 0x001E, |
||
194 | |||
195 | /// <summary> |
||
196 | /// The WM_CANCELMODE message is sent to cancel certain modes, such as mouse capture. For example, the system sends |
||
197 | /// this message to the active window when a dialog box or message box is displayed. Certain functions also send this |
||
198 | /// message explicitly to the specified window regardless of whether it is the active window. For example, the |
||
199 | /// EnableWindow function sends this message when disabling the specified window. |
||
200 | /// </summary> |
||
201 | CANCELMODE = 0x001F, |
||
202 | |||
203 | /// <summary> |
||
204 | /// The WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move within a window and mouse input |
||
205 | /// is not captured. |
||
206 | /// </summary> |
||
207 | SETCURSOR = 0x0020, |
||
208 | |||
209 | /// <summary> |
||
210 | /// The WM_MOUSEACTIVATE message is sent when the cursor is in an inactive window and the user presses a mouse button. |
||
211 | /// The parent window receives this message only if the child window passes it to the DefWindowProc function. |
||
212 | /// </summary> |
||
213 | MOUSEACTIVATE = 0x0021, |
||
214 | |||
215 | /// <summary> |
||
216 | /// The WM_CHILDACTIVATE message is sent to a child window when the user clicks the window's title bar or when the |
||
217 | /// window is activated, moved, or sized. |
||
218 | /// </summary> |
||
219 | CHILDACTIVATE = 0x0022, |
||
220 | |||
221 | /// <summary> |
||
222 | /// The WM_QUEUESYNC message is sent by a computer-based training (CBT) application to separate user-input messages |
||
223 | /// from other messages sent through the WH_JOURNALPLAYBACK Hook procedure. |
||
224 | /// </summary> |
||
225 | QUEUESYNC = 0x0023, |
||
226 | |||
227 | /// <summary> |
||
228 | /// The WM_GETMINMAXINFO message is sent to a window when the size or position of the window is about to change. An |
||
229 | /// application can use this message to override the window's default maximized size and position, or its default |
||
230 | /// minimum or maximum tracking size. |
||
231 | /// </summary> |
||
232 | GETMINMAXINFO = 0x0024, |
||
233 | |||
234 | /// <summary> |
||
235 | /// Windows NT 3.51 and earlier: The WM_PAINTICON message is sent to a minimized window when the icon is to be painted. |
||
236 | /// This message is not sent by newer versions of Microsoft Windows, except in unusual circumstances explained in the |
||
237 | /// Remarks. |
||
238 | /// </summary> |
||
239 | PAINTICON = 0x0026, |
||
240 | |||
241 | /// <summary> |
||
242 | /// Windows NT 3.51 and earlier: The WM_ICONERASEBKGND message is sent to a minimized window when the background of the |
||
243 | /// icon must be filled before painting the icon. A window receives this message only if a class icon is defined for |
||
244 | /// the window; otherwise, WM_ERASEBKGND is sent. This message is not sent by newer versions of Windows. |
||
245 | /// </summary> |
||
246 | ICONERASEBKGND = 0x0027, |
||
247 | |||
248 | /// <summary> |
||
249 | /// The WM_NEXTDLGCTL message is sent to a dialog box procedure to set the keyboard focus to a different control in the |
||
250 | /// dialog box. |
||
251 | /// </summary> |
||
252 | NEXTDLGCTL = 0x0028, |
||
253 | |||
254 | /// <summary> |
||
255 | /// The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print |
||
256 | /// Manager queue. |
||
257 | /// </summary> |
||
258 | SPOOLERSTATUS = 0x002A, |
||
259 | |||
260 | /// <summary> |
||
261 | /// The WM_DRAWITEM message is sent to the parent window of an owner-drawn button, combo box, list box, or menu when a |
||
262 | /// visual aspect of the button, combo box, list box, or menu has changed. |
||
263 | /// </summary> |
||
264 | DRAWITEM = 0x002B, |
||
265 | |||
266 | /// <summary> |
||
267 | /// The WM_MEASUREITEM message is sent to the owner window of a combo box, list box, list view control, or menu item |
||
268 | /// when the control or menu is created. |
||
269 | /// </summary> |
||
270 | MEASUREITEM = 0x002C, |
||
271 | |||
272 | /// <summary> |
||
273 | /// Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed |
||
274 | /// by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a |
||
275 | /// WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or |
||
276 | /// combo box item with nonzero item data. |
||
277 | /// </summary> |
||
278 | DELETEITEM = 0x002D, |
||
279 | |||
280 | /// <summary> |
||
281 | /// Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message. |
||
282 | /// </summary> |
||
283 | VKEYTOITEM = 0x002E, |
||
284 | |||
285 | /// <summary> |
||
286 | /// Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message. |
||
287 | /// </summary> |
||
288 | CHARTOITEM = 0x002F, |
||
289 | |||
290 | /// <summary> |
||
291 | /// An application sends a WM_SETFONT message to specify the font that a control is to use when drawing text. |
||
292 | /// </summary> |
||
293 | SETFONT = 0x0030, |
||
294 | |||
295 | /// <summary> |
||
296 | /// An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently |
||
297 | /// drawing its text. |
||
298 | /// </summary> |
||
299 | GETFONT = 0x0031, |
||
300 | |||
301 | /// <summary> |
||
302 | /// An application sends a WM_SETHOTKEY message to a window to associate a hot key with the window. When the user |
||
303 | /// presses the hot key, the system activates the window. |
||
304 | /// </summary> |
||
305 | SETHOTKEY = 0x0032, |
||
306 | |||
307 | /// <summary> |
||
308 | /// An application sends a WM_GETHOTKEY message to determine the hot key associated with a window. |
||
309 | /// </summary> |
||
310 | GETHOTKEY = 0x0033, |
||
311 | |||
312 | /// <summary> |
||
313 | /// The WM_QUERYDRAGICON message is sent to a minimized (iconic) window. The window is about to be dragged by the user |
||
314 | /// but does not have an icon defined for its class. An application can return a handle to an icon or cursor. The |
||
315 | /// system displays this cursor or icon while the user drags the icon. |
||
316 | /// </summary> |
||
317 | QUERYDRAGICON = 0x0037, |
||
318 | |||
319 | /// <summary> |
||
320 | /// The system sends the WM_COMPAREITEM message to determine the relative position of a new item in the sorted list of |
||
321 | /// an owner-drawn combo box or list box. Whenever the application adds a new item, the system sends this message to |
||
322 | /// the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style. |
||
323 | /// </summary> |
||
324 | COMPAREITEM = 0x0039, |
||
325 | |||
326 | /// <summary> |
||
327 | /// Active Accessibility sends the WM_GETOBJECT message to obtain information about an accessible object contained in a |
||
328 | /// server application. |
||
329 | /// Applications never send this message directly. It is sent only by Active Accessibility in response to calls to |
||
330 | /// AccessibleObjectFromPoint, AccessibleObjectFromEvent, or AccessibleObjectFromWindow. However, server applications |
||
331 | /// handle this message. |
||
332 | /// </summary> |
||
333 | GETOBJECT = 0x003D, |
||
334 | |||
335 | /// <summary> |
||
336 | /// The WM_COMPACTING message is sent to all top-level windows when the system detects more than 12.5 percent of system |
||
337 | /// time over a 30- to 60-second interval is being spent compacting memory. This indicates that system memory is low. |
||
338 | /// </summary> |
||
339 | COMPACTING = 0x0041, |
||
340 | |||
341 | /// <summary> |
||
342 | /// WM_COMMNOTIFY is Obsolete for Win32-Based Applications |
||
343 | /// </summary> |
||
344 | [Obsolete] COMMNOTIFY = 0x0044, |
||
345 | |||
346 | /// <summary> |
||
347 | /// The WM_WINDOWPOSCHANGING message is sent to a window whose size, position, or place in the Z order is about to |
||
348 | /// change as a result of a call to the SetWindowPos function or another window-management function. |
||
349 | /// </summary> |
||
350 | WINDOWPOSCHANGING = 0x0046, |
||
351 | |||
352 | /// <summary> |
||
353 | /// The WM_WINDOWPOSCHANGED message is sent to a window whose size, position, or place in the Z order has changed as a |
||
354 | /// result of a call to the SetWindowPos function or another window-management function. |
||
355 | /// </summary> |
||
356 | WINDOWPOSCHANGED = 0x0047, |
||
357 | |||
358 | /// <summary> |
||
359 | /// Notifies applications that the system, typically a battery-powered personal computer, is about to enter a suspended |
||
360 | /// mode. |
||
361 | /// Use: POWERBROADCAST |
||
362 | /// </summary> |
||
363 | [Obsolete] POWER = 0x0048, |
||
364 | |||
365 | /// <summary> |
||
366 | /// An application sends the WM_COPYDATA message to pass data to another application. |
||
367 | /// </summary> |
||
368 | COPYDATA = 0x004A, |
||
369 | |||
370 | /// <summary> |
||
371 | /// The WM_CANCELJOURNAL message is posted to an application when a user cancels the application's journaling |
||
372 | /// activities. The message is posted with a NULL window handle. |
||
373 | /// </summary> |
||
374 | CANCELJOURNAL = 0x004B, |
||
375 | |||
376 | /// <summary> |
||
377 | /// Sent by a common control to its parent window when an event has occurred or the control requires some information. |
||
378 | /// </summary> |
||
379 | NOTIFY = 0x004E, |
||
380 | |||
381 | /// <summary> |
||
382 | /// The WM_INPUTLANGCHANGEREQUEST message is posted to the window with the focus when the user chooses a new input |
||
383 | /// language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the |
||
384 | /// system taskbar. An application can accept the change by passing the message to the DefWindowProc function or reject |
||
385 | /// the change (and prevent it from taking place) by returning immediately. |
||
386 | /// </summary> |
||
387 | INPUTLANGCHANGEREQUEST = 0x0050, |
||
388 | |||
389 | /// <summary> |
||
390 | /// The WM_INPUTLANGCHANGE message is sent to the topmost affected window after an application's input language has |
||
391 | /// been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, |
||
392 | /// which passes the message to all first-level child windows. These child windows can pass the message to |
||
393 | /// DefWindowProc to have it pass the message to their child windows, and so on. |
||
394 | /// </summary> |
||
395 | INPUTLANGCHANGE = 0x0051, |
||
396 | |||
397 | /// <summary> |
||
398 | /// Sent to an application that has initiated a training card with Microsoft Windows Help. The message informs the |
||
399 | /// application when the user clicks an authorable button. An application initiates a training card by specifying the |
||
400 | /// HELP_TCARD command in a call to the WinHelp function. |
||
401 | /// </summary> |
||
402 | TCARD = 0x0052, |
||
403 | |||
404 | /// <summary> |
||
405 | /// Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed, WM_HELP is sent to the window |
||
406 | /// associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has |
||
407 | /// the keyboard focus, WM_HELP is sent to the currently active window. |
||
408 | /// </summary> |
||
409 | HELP = 0x0053, |
||
410 | |||
411 | /// <summary> |
||
412 | /// The WM_USERCHANGED message is sent to all windows after the user has logged on or off. When the user logs on or |
||
413 | /// off, the system updates the user-specific settings. The system sends this message immediately after updating the |
||
414 | /// settings. |
||
415 | /// </summary> |
||
416 | USERCHANGED = 0x0054, |
||
417 | |||
418 | /// <summary> |
||
419 | /// Determines if a window accepts ANSI or Unicode structures in the WM_NOTIFY notification message. WM_NOTIFYFORMAT |
||
420 | /// messages are sent from a common control to its parent window and from the parent window to the common control. |
||
421 | /// </summary> |
||
422 | NOTIFYFORMAT = 0x0055, |
||
423 | |||
424 | /// <summary> |
||
425 | /// The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button (right-clicked) in the |
||
426 | /// window. |
||
427 | /// </summary> |
||
428 | CONTEXTMENU = 0x007B, |
||
429 | |||
430 | /// <summary> |
||
431 | /// The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of |
||
432 | /// the window's styles. |
||
433 | /// </summary> |
||
434 | STYLECHANGING = 0x007C, |
||
435 | |||
436 | /// <summary> |
||
437 | /// The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the |
||
438 | /// window's styles |
||
439 | /// </summary> |
||
440 | STYLECHANGED = 0x007D, |
||
441 | |||
442 | /// <summary> |
||
443 | /// The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed. |
||
444 | /// </summary> |
||
445 | DISPLAYCHANGE = 0x007E, |
||
446 | |||
447 | /// <summary> |
||
448 | /// The WM_GETICON message is sent to a window to retrieve a handle to the large or small icon associated with a |
||
449 | /// window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption. |
||
450 | /// </summary> |
||
451 | GETICON = 0x007F, |
||
452 | |||
453 | /// <summary> |
||
454 | /// An application sends the WM_SETICON message to associate a new large or small icon with a window. The system |
||
455 | /// displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption. |
||
456 | /// </summary> |
||
457 | SETICON = 0x0080, |
||
458 | |||
459 | /// <summary> |
||
460 | /// The WM_NCCREATE message is sent prior to the WM_CREATE message when a window is first created. |
||
461 | /// </summary> |
||
462 | NCCREATE = 0x0081, |
||
463 | |||
464 | /// <summary> |
||
465 | /// The WM_NCDESTROY message informs a window that its nonclient area is being destroyed. The DestroyWindow function |
||
466 | /// sends the WM_NCDESTROY message to the window following the WM_DESTROY message. WM_DESTROY is used to free the |
||
467 | /// allocated memory object associated with the window. |
||
468 | /// The WM_NCDESTROY message is sent after the child windows have been destroyed. In contrast, WM_DESTROY is sent |
||
469 | /// before the child windows are destroyed. |
||
470 | /// </summary> |
||
471 | NCDESTROY = 0x0082, |
||
472 | |||
473 | /// <summary> |
||
474 | /// The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated. By |
||
475 | /// processing this message, an application can control the content of the window's client area when the size or |
||
476 | /// position of the window changes. |
||
477 | /// </summary> |
||
478 | NCCALCSIZE = 0x0083, |
||
479 | |||
480 | /// <summary> |
||
481 | /// The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. |
||
482 | /// If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent |
||
483 | /// to the window that has captured the mouse. |
||
484 | /// </summary> |
||
485 | NCHITTEST = 0x0084, |
||
486 | |||
487 | /// <summary> |
||
488 | /// The WM_NCPAINT message is sent to a window when its frame must be painted. |
||
489 | /// </summary> |
||
490 | NCPAINT = 0x0085, |
||
491 | |||
492 | /// <summary> |
||
493 | /// The WM_NCACTIVATE message is sent to a window when its nonclient area needs to be changed to indicate an active or |
||
494 | /// inactive state. |
||
495 | /// </summary> |
||
496 | NCACTIVATE = 0x0086, |
||
497 | |||
498 | /// <summary> |
||
499 | /// The WM_GETDLGCODE message is sent to the window procedure associated with a control. By default, the system handles |
||
500 | /// all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation |
||
501 | /// keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types |
||
502 | /// of input it wants to process itself. |
||
503 | /// </summary> |
||
504 | GETDLGCODE = 0x0087, |
||
505 | |||
506 | /// <summary> |
||
507 | /// The WM_SYNCPAINT message is used to synchronize painting while avoiding linking independent GUI threads. |
||
508 | /// </summary> |
||
509 | SYNCPAINT = 0x0088, |
||
510 | |||
511 | /// <summary> |
||
512 | /// The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient area of the window. |
||
513 | /// This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is |
||
514 | /// not posted. |
||
515 | /// </summary> |
||
516 | NCMOUSEMOVE = 0x00A0, |
||
517 | |||
518 | /// <summary> |
||
519 | /// The WM_NCLBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is within the |
||
520 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
521 | /// the mouse, this message is not posted. |
||
522 | /// </summary> |
||
523 | NCLBUTTONDOWN = 0x00A1, |
||
524 | |||
525 | /// <summary> |
||
526 | /// The WM_NCLBUTTONUP message is posted when the user releases the left mouse button while the cursor is within the |
||
527 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
528 | /// the mouse, this message is not posted. |
||
529 | /// </summary> |
||
530 | NCLBUTTONUP = 0x00A2, |
||
531 | |||
532 | /// <summary> |
||
533 | /// The WM_NCLBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is |
||
534 | /// within the nonclient area of a window. This message is posted to the window that contains the cursor. If a window |
||
535 | /// has captured the mouse, this message is not posted. |
||
536 | /// </summary> |
||
537 | NCLBUTTONDBLCLK = 0x00A3, |
||
538 | |||
539 | /// <summary> |
||
540 | /// The WM_NCRBUTTONDOWN message is posted when the user presses the right mouse button while the cursor is within the |
||
541 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
542 | /// the mouse, this message is not posted. |
||
543 | /// </summary> |
||
544 | NCRBUTTONDOWN = 0x00A4, |
||
545 | |||
546 | /// <summary> |
||
547 | /// The WM_NCRBUTTONUP message is posted when the user releases the right mouse button while the cursor is within the |
||
548 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
549 | /// the mouse, this message is not posted. |
||
550 | /// </summary> |
||
551 | NCRBUTTONUP = 0x00A5, |
||
552 | |||
553 | /// <summary> |
||
554 | /// The WM_NCRBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is |
||
555 | /// within the nonclient area of a window. This message is posted to the window that contains the cursor. If a window |
||
556 | /// has captured the mouse, this message is not posted. |
||
557 | /// </summary> |
||
558 | NCRBUTTONDBLCLK = 0x00A6, |
||
559 | |||
560 | /// <summary> |
||
561 | /// The WM_NCMBUTTONDOWN message is posted when the user presses the middle mouse button while the cursor is within the |
||
562 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
563 | /// the mouse, this message is not posted. |
||
564 | /// </summary> |
||
565 | NCMBUTTONDOWN = 0x00A7, |
||
566 | |||
567 | /// <summary> |
||
568 | /// The WM_NCMBUTTONUP message is posted when the user releases the middle mouse button while the cursor is within the |
||
569 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
570 | /// the mouse, this message is not posted. |
||
571 | /// </summary> |
||
572 | NCMBUTTONUP = 0x00A8, |
||
573 | |||
574 | /// <summary> |
||
575 | /// The WM_NCMBUTTONDBLCLK message is posted when the user double-clicks the middle mouse button while the cursor is |
||
576 | /// within the nonclient area of a window. This message is posted to the window that contains the cursor. If a window |
||
577 | /// has captured the mouse, this message is not posted. |
||
578 | /// </summary> |
||
579 | NCMBUTTONDBLCLK = 0x00A9, |
||
580 | |||
581 | /// <summary> |
||
582 | /// The WM_NCXBUTTONDOWN message is posted when the user presses the first or second X button while the cursor is in |
||
583 | /// the nonclient area of a window. This message is posted to the window that contains the cursor. If a window has |
||
584 | /// captured the mouse, this message is not posted. |
||
585 | /// </summary> |
||
586 | NCXBUTTONDOWN = 0x00AB, |
||
587 | |||
588 | /// <summary> |
||
589 | /// The WM_NCXBUTTONUP message is posted when the user releases the first or second X button while the cursor is in the |
||
590 | /// nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured |
||
591 | /// the mouse, this message is not posted. |
||
592 | /// </summary> |
||
593 | NCXBUTTONUP = 0x00AC, |
||
594 | |||
595 | /// <summary> |
||
596 | /// The WM_NCXBUTTONDBLCLK message is posted when the user double-clicks the first or second X button while the cursor |
||
597 | /// is in the nonclient area of a window. This message is posted to the window that contains the cursor. If a window |
||
598 | /// has captured the mouse, this message is not posted. |
||
599 | /// </summary> |
||
600 | NCXBUTTONDBLCLK = 0x00AD, |
||
601 | |||
602 | /// <summary> |
||
603 | /// The WM_INPUT_DEVICE_CHANGE message is sent to the window that registered to receive raw input. A window receives |
||
604 | /// this message through its WindowProc function. |
||
605 | /// </summary> |
||
606 | INPUT_DEVICE_CHANGE = 0x00FE, |
||
607 | |||
608 | /// <summary> |
||
609 | /// The WM_INPUT message is sent to the window that is getting raw input. |
||
610 | /// </summary> |
||
611 | INPUT = 0x00FF, |
||
612 | |||
613 | /// <summary> |
||
614 | /// This message filters for keyboard messages. |
||
615 | /// </summary> |
||
616 | KEYFIRST = 0x0100, |
||
617 | |||
618 | /// <summary> |
||
619 | /// The WM_KEYDOWN message is posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem |
||
620 | /// key is a key that is pressed when the ALT key is not pressed. |
||
621 | /// </summary> |
||
622 | KEYDOWN = 0x0100, |
||
623 | |||
624 | /// <summary> |
||
625 | /// The WM_KEYUP message is posted to the window with the keyboard focus when a nonsystem key is released. A nonsystem |
||
626 | /// key is a key that is pressed when the ALT key is not pressed, or a keyboard key that is pressed when a window has |
||
627 | /// the keyboard focus. |
||
628 | /// </summary> |
||
629 | KEYUP = 0x0101, |
||
630 | |||
631 | /// <summary> |
||
632 | /// The WM_CHAR message is posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the |
||
633 | /// TranslateMessage function. The WM_CHAR message contains the character code of the key that was pressed. |
||
634 | /// </summary> |
||
635 | CHAR = 0x0102, |
||
636 | |||
637 | /// <summary> |
||
638 | /// The WM_DEADCHAR message is posted to the window with the keyboard focus when a WM_KEYUP message is translated by |
||
639 | /// the TranslateMessage function. WM_DEADCHAR specifies a character code generated by a dead key. A dead key is a key |
||
640 | /// that generates a character, such as the umlaut (double-dot), that is combined with another character to form a |
||
641 | /// composite character. For example, the umlaut-O character (Ö) is generated by typing the dead key for the umlaut |
||
642 | /// character, and then typing the O key. |
||
643 | /// </summary> |
||
644 | DEADCHAR = 0x0103, |
||
645 | |||
646 | /// <summary> |
||
647 | /// The WM_SYSKEYDOWN message is posted to the window with the keyboard focus when the user presses the F10 key (which |
||
648 | /// activates the menu bar) or holds down the ALT key and then presses another key. It also occurs when no window |
||
649 | /// currently has the keyboard focus; in this case, the WM_SYSKEYDOWN message is sent to the active window. The window |
||
650 | /// that receives the message can distinguish between these two contexts by checking the context code in the lParam |
||
651 | /// parameter. |
||
652 | /// </summary> |
||
653 | SYSKEYDOWN = 0x0104, |
||
654 | |||
655 | /// <summary> |
||
656 | /// The WM_SYSKEYUP message is posted to the window with the keyboard focus when the user releases a key that was |
||
657 | /// pressed while the ALT key was held down. It also occurs when no window currently has the keyboard focus; in this |
||
658 | /// case, the WM_SYSKEYUP message is sent to the active window. The window that receives the message can distinguish |
||
659 | /// between these two contexts by checking the context code in the lParam parameter. |
||
660 | /// </summary> |
||
661 | SYSKEYUP = 0x0105, |
||
662 | |||
663 | /// <summary> |
||
664 | /// The WM_SYSCHAR message is posted to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated |
||
665 | /// by the TranslateMessage function. It specifies the character code of a system character key — that is, a character |
||
666 | /// key that is pressed while the ALT key is down. |
||
667 | /// </summary> |
||
668 | SYSCHAR = 0x0106, |
||
669 | |||
670 | /// <summary> |
||
671 | /// The WM_SYSDEADCHAR message is sent to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated |
||
672 | /// by the TranslateMessage function. WM_SYSDEADCHAR specifies the character code of a system dead key — that is, a |
||
673 | /// dead key that is pressed while holding down the ALT key. |
||
674 | /// </summary> |
||
675 | SYSDEADCHAR = 0x0107, |
||
676 | |||
677 | /// <summary> |
||
678 | /// The WM_UNICHAR message is posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by |
||
679 | /// the TranslateMessage function. The WM_UNICHAR message contains the character code of the key that was pressed. |
||
680 | /// The WM_UNICHAR message is equivalent to WM_CHAR, but it uses Unicode Transformation Format (UTF)-32, whereas |
||
681 | /// WM_CHAR uses UTF-16. It is designed to send or post Unicode characters to ANSI windows and it can can handle |
||
682 | /// Unicode Supplementary Plane characters. |
||
683 | /// </summary> |
||
684 | UNICHAR = 0x0109, |
||
685 | |||
686 | /// <summary> |
||
687 | /// This message filters for keyboard messages. |
||
688 | /// </summary> |
||
689 | KEYLAST = 0x0108, |
||
690 | |||
691 | /// <summary> |
||
692 | /// Sent immediately before the IME generates the composition string as a result of a keystroke. A window receives this |
||
693 | /// message through its WindowProc function. |
||
694 | /// </summary> |
||
695 | IME_STARTCOMPOSITION = 0x010D, |
||
696 | |||
697 | /// <summary> |
||
698 | /// Sent to an application when the IME ends composition. A window receives this message through its WindowProc |
||
699 | /// function. |
||
700 | /// </summary> |
||
701 | IME_ENDCOMPOSITION = 0x010E, |
||
702 | |||
703 | /// <summary> |
||
704 | /// Sent to an application when the IME changes composition status as a result of a keystroke. A window receives this |
||
705 | /// message through its WindowProc function. |
||
706 | /// </summary> |
||
707 | IME_COMPOSITION = 0x010F, |
||
708 | |||
709 | IME_KEYLAST = 0x010F, |
||
710 | |||
711 | /// <summary> |
||
712 | /// The WM_INITDIALOG message is sent to the dialog box procedure immediately before a dialog box is displayed. Dialog |
||
713 | /// box procedures typically use this message to initialize controls and carry out any other initialization tasks that |
||
714 | /// affect the appearance of the dialog box. |
||
715 | /// </summary> |
||
716 | INITDIALOG = 0x0110, |
||
717 | |||
718 | /// <summary> |
||
719 | /// The WM_COMMAND message is sent when the user selects a command item from a menu, when a control sends a |
||
720 | /// notification message to its parent window, or when an accelerator keystroke is translated. |
||
721 | /// </summary> |
||
722 | COMMAND = 0x0111, |
||
723 | |||
724 | /// <summary> |
||
725 | /// A window receives this message when the user chooses a command from the Window menu, clicks the maximize button, |
||
726 | /// minimize button, restore button, close button, or moves the form. You can stop the form from moving by filtering |
||
727 | /// this out. |
||
728 | /// </summary> |
||
729 | SYSCOMMAND = 0x0112, |
||
730 | |||
731 | /// <summary> |
||
732 | /// The WM_TIMER message is posted to the installing thread's message queue when a timer expires. The message is posted |
||
733 | /// by the GetMessage or PeekMessage function. |
||
734 | /// </summary> |
||
735 | TIMER = 0x0113, |
||
736 | |||
737 | /// <summary> |
||
738 | /// The WM_HSCROLL message is sent to a window when a scroll event occurs in the window's standard horizontal scroll |
||
739 | /// bar. This message is also sent to the owner of a horizontal scroll bar control when a scroll event occurs in the |
||
740 | /// control. |
||
741 | /// </summary> |
||
742 | HSCROLL = 0x0114, |
||
743 | |||
744 | /// <summary> |
||
745 | /// The WM_VSCROLL message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar. |
||
746 | /// This message is also sent to the owner of a vertical scroll bar control when a scroll event occurs in the control. |
||
747 | /// </summary> |
||
748 | VSCROLL = 0x0115, |
||
749 | |||
750 | /// <summary> |
||
751 | /// The WM_INITMENU message is sent when a menu is about to become active. It occurs when the user clicks an item on |
||
752 | /// the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed. |
||
753 | /// </summary> |
||
754 | INITMENU = 0x0116, |
||
755 | |||
756 | /// <summary> |
||
757 | /// The WM_INITMENUPOPUP message is sent when a drop-down menu or submenu is about to become active. This allows an |
||
758 | /// application to modify the menu before it is displayed, without changing the entire menu. |
||
759 | /// </summary> |
||
760 | INITMENUPOPUP = 0x0117, |
||
761 | |||
762 | /// <summary> |
||
763 | /// The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item. |
||
764 | /// </summary> |
||
765 | MENUSELECT = 0x011F, |
||
766 | |||
767 | /// <summary> |
||
768 | /// The WM_MENUCHAR message is sent when a menu is active and the user presses a key that does not correspond to any |
||
769 | /// mnemonic or accelerator key. This message is sent to the window that owns the menu. |
||
770 | /// </summary> |
||
771 | MENUCHAR = 0x0120, |
||
772 | |||
773 | /// <summary> |
||
774 | /// The WM_ENTERIDLE message is sent to the owner window of a modal dialog box or menu that is entering an idle state. |
||
775 | /// A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed |
||
776 | /// one or more previous messages. |
||
777 | /// </summary> |
||
778 | ENTERIDLE = 0x0121, |
||
779 | |||
780 | /// <summary> |
||
781 | /// The WM_MENURBUTTONUP message is sent when the user releases the right mouse button while the cursor is on a menu |
||
782 | /// item. |
||
783 | /// </summary> |
||
784 | MENURBUTTONUP = 0x0122, |
||
785 | |||
786 | /// <summary> |
||
787 | /// The WM_MENUDRAG message is sent to the owner of a drag-and-drop menu when the user drags a menu item. |
||
788 | /// </summary> |
||
789 | MENUDRAG = 0x0123, |
||
790 | |||
791 | /// <summary> |
||
792 | /// The WM_MENUGETOBJECT message is sent to the owner of a drag-and-drop menu when the mouse cursor enters a menu item |
||
793 | /// or moves from the center of the item to the top or bottom of the item. |
||
794 | /// </summary> |
||
795 | MENUGETOBJECT = 0x0124, |
||
796 | |||
797 | /// <summary> |
||
798 | /// The WM_UNINITMENUPOPUP message is sent when a drop-down menu or submenu has been destroyed. |
||
799 | /// </summary> |
||
800 | UNINITMENUPOPUP = 0x0125, |
||
801 | |||
802 | /// <summary> |
||
803 | /// The WM_MENUCOMMAND message is sent when the user makes a selection from a menu. |
||
804 | /// </summary> |
||
805 | MENUCOMMAND = 0x0126, |
||
806 | |||
807 | /// <summary> |
||
808 | /// An application sends the WM_CHANGEUISTATE message to indicate that the user interface (UI) state should be changed. |
||
809 | /// </summary> |
||
810 | CHANGEUISTATE = 0x0127, |
||
811 | |||
812 | /// <summary> |
||
813 | /// An application sends the WM_UPDATEUISTATE message to change the user interface (UI) state for the specified window |
||
814 | /// and all its child windows. |
||
815 | /// </summary> |
||
816 | UPDATEUISTATE = 0x0128, |
||
817 | |||
818 | /// <summary> |
||
819 | /// An application sends the WM_QUERYUISTATE message to retrieve the user interface (UI) state for a window. |
||
820 | /// </summary> |
||
821 | QUERYUISTATE = 0x0129, |
||
822 | |||
823 | /// <summary> |
||
824 | /// The WM_CTLCOLORMSGBOX message is sent to the owner window of a message box before Windows draws the message box. By |
||
825 | /// responding to this message, the owner window can set the text and background colors of the message box by using the |
||
826 | /// given display device context handle. |
||
827 | /// </summary> |
||
828 | CTLCOLORMSGBOX = 0x0132, |
||
829 | |||
830 | /// <summary> |
||
831 | /// An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the |
||
832 | /// control is about to be drawn. By responding to this message, the parent window can use the specified device context |
||
833 | /// handle to set the text and background colors of the edit control. |
||
834 | /// </summary> |
||
835 | CTLCOLOREDIT = 0x0133, |
||
836 | |||
837 | /// <summary> |
||
838 | /// Sent to the parent window of a list box before the system draws the list box. By responding to this message, the |
||
839 | /// parent window can set the text and background colors of the list box by using the specified display device context |
||
840 | /// handle. |
||
841 | /// </summary> |
||
842 | CTLCOLORLISTBOX = 0x0134, |
||
843 | |||
844 | /// <summary> |
||
845 | /// The WM_CTLCOLORBTN message is sent to the parent window of a button before drawing the button. The parent window |
||
846 | /// can change the button's text and background colors. However, only owner-drawn buttons respond to the parent window |
||
847 | /// processing this message. |
||
848 | /// </summary> |
||
849 | CTLCOLORBTN = 0x0135, |
||
850 | |||
851 | /// <summary> |
||
852 | /// The WM_CTLCOLORDLG message is sent to a dialog box before the system draws the dialog box. By responding to this |
||
853 | /// message, the dialog box can set its text and background colors using the specified display device context handle. |
||
854 | /// </summary> |
||
855 | CTLCOLORDLG = 0x0136, |
||
856 | |||
857 | /// <summary> |
||
858 | /// The WM_CTLCOLORSCROLLBAR message is sent to the parent window of a scroll bar control when the control is about to |
||
859 | /// be drawn. By responding to this message, the parent window can use the display context handle to set the background |
||
860 | /// color of the scroll bar control. |
||
861 | /// </summary> |
||
862 | CTLCOLORSCROLLBAR = 0x0137, |
||
863 | |||
864 | /// <summary> |
||
865 | /// A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its |
||
866 | /// parent window when the control is about to be drawn. By responding to this message, the parent window can use the |
||
867 | /// specified device context handle to set the text and background colors of the static control. |
||
868 | /// </summary> |
||
869 | CTLCOLORSTATIC = 0x0138, |
||
870 | |||
871 | /// <summary> |
||
872 | /// Use WM_MOUSEFIRST to specify the first mouse message. Use the PeekMessage() Function. |
||
873 | /// </summary> |
||
874 | MOUSEFIRST = 0x0200, |
||
875 | |||
876 | /// <summary> |
||
877 | /// The WM_MOUSEMOVE message is posted to a window when the cursor moves. If the mouse is not captured, the message is |
||
878 | /// posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the |
||
879 | /// mouse. |
||
880 | /// </summary> |
||
881 | MOUSEMOVE = 0x0200, |
||
882 | |||
883 | /// <summary> |
||
884 | /// The WM_LBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is in the client |
||
885 | /// area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, |
||
886 | /// the message is posted to the window that has captured the mouse. |
||
887 | /// </summary> |
||
888 | LBUTTONDOWN = 0x0201, |
||
889 | |||
890 | /// <summary> |
||
891 | /// The WM_LBUTTONUP message is posted when the user releases the left mouse button while the cursor is in the client |
||
892 | /// area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, |
||
893 | /// the message is posted to the window that has captured the mouse. |
||
894 | /// </summary> |
||
895 | LBUTTONUP = 0x0202, |
||
896 | |||
897 | /// <summary> |
||
898 | /// The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is in the |
||
899 | /// client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
900 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
901 | /// </summary> |
||
902 | LBUTTONDBLCLK = 0x0203, |
||
903 | |||
904 | /// <summary> |
||
905 | /// The WM_RBUTTONDOWN message is posted when the user presses the right mouse button while the cursor is in the client |
||
906 | /// area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, |
||
907 | /// the message is posted to the window that has captured the mouse. |
||
908 | /// </summary> |
||
909 | RBUTTONDOWN = 0x0204, |
||
910 | |||
911 | /// <summary> |
||
912 | /// The WM_RBUTTONUP message is posted when the user releases the right mouse button while the cursor is in the client |
||
913 | /// area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, |
||
914 | /// the message is posted to the window that has captured the mouse. |
||
915 | /// </summary> |
||
916 | RBUTTONUP = 0x0205, |
||
917 | |||
918 | /// <summary> |
||
919 | /// The WM_RBUTTONDBLCLK message is posted when the user double-clicks the right mouse button while the cursor is in |
||
920 | /// the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
921 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
922 | /// </summary> |
||
923 | RBUTTONDBLCLK = 0x0206, |
||
924 | |||
925 | /// <summary> |
||
926 | /// The WM_MBUTTONDOWN message is posted when the user presses the middle mouse button while the cursor is in the |
||
927 | /// client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
928 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
929 | /// </summary> |
||
930 | MBUTTONDOWN = 0x0207, |
||
931 | |||
932 | /// <summary> |
||
933 | /// The WM_MBUTTONUP message is posted when the user releases the middle mouse button while the cursor is in the client |
||
934 | /// area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, |
||
935 | /// the message is posted to the window that has captured the mouse. |
||
936 | /// </summary> |
||
937 | MBUTTONUP = 0x0208, |
||
938 | |||
939 | /// <summary> |
||
940 | /// The WM_MBUTTONDBLCLK message is posted when the user double-clicks the middle mouse button while the cursor is in |
||
941 | /// the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
942 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
943 | /// </summary> |
||
944 | MBUTTONDBLCLK = 0x0209, |
||
945 | |||
946 | /// <summary> |
||
947 | /// The WM_MOUSEWHEEL message is sent to the focus window when the mouse wheel is rotated. The DefWindowProc function |
||
948 | /// propagates the message to the window's parent. There should be no internal forwarding of the message, since |
||
949 | /// DefWindowProc propagates it up the parent chain until it finds a window that processes it. |
||
950 | /// </summary> |
||
951 | MOUSEWHEEL = 0x020A, |
||
952 | |||
953 | /// <summary> |
||
954 | /// The WM_XBUTTONDOWN message is posted when the user presses the first or second X button while the cursor is in the |
||
955 | /// client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
956 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
957 | /// </summary> |
||
958 | XBUTTONDOWN = 0x020B, |
||
959 | |||
960 | /// <summary> |
||
961 | /// The WM_XBUTTONUP message is posted when the user releases the first or second X button while the cursor is in the |
||
962 | /// client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. |
||
963 | /// Otherwise, the message is posted to the window that has captured the mouse. |
||
964 | /// </summary> |
||
965 | XBUTTONUP = 0x020C, |
||
966 | |||
967 | /// <summary> |
||
968 | /// The WM_XBUTTONDBLCLK message is posted when the user double-clicks the first or second X button while the cursor is |
||
969 | /// in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the |
||
970 | /// cursor. Otherwise, the message is posted to the window that has captured the mouse. |
||
971 | /// </summary> |
||
972 | XBUTTONDBLCLK = 0x020D, |
||
973 | |||
974 | /// <summary> |
||
975 | /// The WM_MOUSEHWHEEL message is sent to the focus window when the mouse's horizontal scroll wheel is tilted or |
||
976 | /// rotated. The DefWindowProc function propagates the message to the window's parent. There should be no internal |
||
977 | /// forwarding of the message, since DefWindowProc propagates it up the parent chain until it finds a window that |
||
978 | /// processes it. |
||
979 | /// </summary> |
||
980 | MOUSEHWHEEL = 0x020E, |
||
981 | |||
982 | /// <summary> |
||
983 | /// Use WM_MOUSELAST to specify the last mouse message. Used with PeekMessage() Function. |
||
984 | /// </summary> |
||
985 | MOUSELAST = 0x020E, |
||
986 | |||
987 | /// <summary> |
||
988 | /// The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed, |
||
989 | /// or when the user clicks a mouse button while the cursor is over the child window. When the child window is being |
||
990 | /// created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the |
||
991 | /// window returns. When the child window is being destroyed, the system sends the message before any processing to |
||
992 | /// destroy the window takes place. |
||
993 | /// </summary> |
||
994 | PARENTNOTIFY = 0x0210, |
||
995 | |||
996 | /// <summary> |
||
997 | /// The WM_ENTERMENULOOP message informs an application's main window procedure that a menu modal loop has been |
||
998 | /// entered. |
||
999 | /// </summary> |
||
1000 | ENTERMENULOOP = 0x0211, |
||
1001 | |||
1002 | /// <summary> |
||
1003 | /// The WM_EXITMENULOOP message informs an application's main window procedure that a menu modal loop has been exited. |
||
1004 | /// </summary> |
||
1005 | EXITMENULOOP = 0x0212, |
||
1006 | |||
1007 | /// <summary> |
||
1008 | /// The WM_NEXTMENU message is sent to an application when the right or left arrow key is used to switch between the |
||
1009 | /// menu bar and the system menu. |
||
1010 | /// </summary> |
||
1011 | NEXTMENU = 0x0213, |
||
1012 | |||
1013 | /// <summary> |
||
1014 | /// The WM_SIZING message is sent to a window that the user is resizing. By processing this message, an application can |
||
1015 | /// monitor the size and position of the drag rectangle and, if needed, change its size or position. |
||
1016 | /// </summary> |
||
1017 | SIZING = 0x0214, |
||
1018 | |||
1019 | /// <summary> |
||
1020 | /// The WM_CAPTURECHANGED message is sent to the window that is losing the mouse capture. |
||
1021 | /// </summary> |
||
1022 | CAPTURECHANGED = 0x0215, |
||
1023 | |||
1024 | /// <summary> |
||
1025 | /// The WM_MOVING message is sent to a window that the user is moving. By processing this message, an application can |
||
1026 | /// monitor the position of the drag rectangle and, if needed, change its position. |
||
1027 | /// </summary> |
||
1028 | MOVING = 0x0216, |
||
1029 | |||
1030 | /// <summary> |
||
1031 | /// Notifies applications that a power-management event has occurred. |
||
1032 | /// </summary> |
||
1033 | POWERBROADCAST = 0x0218, |
||
1034 | |||
1035 | /// <summary> |
||
1036 | /// Notifies an application of a change to the hardware configuration of a device or the computer. |
||
1037 | /// </summary> |
||
1038 | DEVICECHANGE = 0x0219, |
||
1039 | |||
1040 | /// <summary> |
||
1041 | /// An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI |
||
1042 | /// child window. |
||
1043 | /// </summary> |
||
1044 | MDICREATE = 0x0220, |
||
1045 | |||
1046 | /// <summary> |
||
1047 | /// An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI |
||
1048 | /// child window. |
||
1049 | /// </summary> |
||
1050 | MDIDESTROY = 0x0221, |
||
1051 | |||
1052 | /// <summary> |
||
1053 | /// An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct |
||
1054 | /// the client window to activate a different MDI child window. |
||
1055 | /// </summary> |
||
1056 | MDIACTIVATE = 0x0222, |
||
1057 | |||
1058 | /// <summary> |
||
1059 | /// An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an |
||
1060 | /// MDI child window from maximized or minimized size. |
||
1061 | /// </summary> |
||
1062 | MDIRESTORE = 0x0223, |
||
1063 | |||
1064 | /// <summary> |
||
1065 | /// An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the |
||
1066 | /// next or previous child window. |
||
1067 | /// </summary> |
||
1068 | MDINEXT = 0x0224, |
||
1069 | |||
1070 | /// <summary> |
||
1071 | /// An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an |
||
1072 | /// MDI child window. The system resizes the child window to make its client area fill the client window. The system |
||
1073 | /// places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the |
||
1074 | /// child window's restore icon in the leftmost position. The system also appends the title bar text of the child |
||
1075 | /// window to that of the frame window. |
||
1076 | /// </summary> |
||
1077 | MDIMAXIMIZE = 0x0225, |
||
1078 | |||
1079 | /// <summary> |
||
1080 | /// An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of |
||
1081 | /// its MDI child windows in a tile format. |
||
1082 | /// </summary> |
||
1083 | MDITILE = 0x0226, |
||
1084 | |||
1085 | /// <summary> |
||
1086 | /// An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all |
||
1087 | /// its child windows in a cascade format. |
||
1088 | /// </summary> |
||
1089 | MDICASCADE = 0x0227, |
||
1090 | |||
1091 | /// <summary> |
||
1092 | /// An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange |
||
1093 | /// all minimized MDI child windows. It does not affect child windows that are not minimized. |
||
1094 | /// </summary> |
||
1095 | MDIICONARRANGE = 0x0228, |
||
1096 | |||
1097 | /// <summary> |
||
1098 | /// An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve |
||
1099 | /// the handle to the active MDI child window. |
||
1100 | /// </summary> |
||
1101 | MDIGETACTIVE = 0x0229, |
||
1102 | |||
1103 | /// <summary> |
||
1104 | /// An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the |
||
1105 | /// entire menu of an MDI frame window, to replace the window menu of the frame window, or both. |
||
1106 | /// </summary> |
||
1107 | MDISETMENU = 0x0230, |
||
1108 | |||
1109 | /// <summary> |
||
1110 | /// The WM_ENTERSIZEMOVE message is sent one time to a window after it enters the moving or sizing modal loop. The |
||
1111 | /// window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when |
||
1112 | /// the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message |
||
1113 | /// specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. |
||
1114 | /// The system sends the WM_ENTERSIZEMOVE message regardless of whether the dragging of full windows is enabled. |
||
1115 | /// </summary> |
||
1116 | ENTERSIZEMOVE = 0x0231, |
||
1117 | |||
1118 | /// <summary> |
||
1119 | /// The WM_EXITSIZEMOVE message is sent one time to a window, after it has exited the moving or sizing modal loop. The |
||
1120 | /// window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when |
||
1121 | /// the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message |
||
1122 | /// specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. |
||
1123 | /// </summary> |
||
1124 | EXITSIZEMOVE = 0x0232, |
||
1125 | |||
1126 | /// <summary> |
||
1127 | /// Sent when the user drops a file on the window of an application that has registered itself as a recipient of |
||
1128 | /// dropped files. |
||
1129 | /// </summary> |
||
1130 | DROPFILES = 0x0233, |
||
1131 | |||
1132 | /// <summary> |
||
1133 | /// An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh |
||
1134 | /// the window menu of the MDI frame window. |
||
1135 | /// </summary> |
||
1136 | MDIREFRESHMENU = 0x0234, |
||
1137 | |||
1138 | /// <summary> |
||
1139 | /// Sent to an application when a window is activated. A window receives this message through its WindowProc function. |
||
1140 | /// </summary> |
||
1141 | IME_SETCONTEXT = 0x0281, |
||
1142 | |||
1143 | /// <summary> |
||
1144 | /// Sent to an application to notify it of changes to the IME window. A window receives this message through its |
||
1145 | /// WindowProc function. |
||
1146 | /// </summary> |
||
1147 | IME_NOTIFY = 0x0282, |
||
1148 | |||
1149 | /// <summary> |
||
1150 | /// Sent by an application to direct the IME window to carry out the requested command. The application uses this |
||
1151 | /// message to control the IME window that it has created. To send this message, the application calls the SendMessage |
||
1152 | /// function with the following parameters. |
||
1153 | /// </summary> |
||
1154 | IME_CONTROL = 0x0283, |
||
1155 | |||
1156 | /// <summary> |
||
1157 | /// Sent to an application when the IME window finds no space to extend the area for the composition window. A window |
||
1158 | /// receives this message through its WindowProc function. |
||
1159 | /// </summary> |
||
1160 | IME_COMPOSITIONFULL = 0x0284, |
||
1161 | |||
1162 | /// <summary> |
||
1163 | /// Sent to an application when the operating system is about to change the current IME. A window receives this message |
||
1164 | /// through its WindowProc function. |
||
1165 | /// </summary> |
||
1166 | IME_SELECT = 0x0285, |
||
1167 | |||
1168 | /// <summary> |
||
1169 | /// Sent to an application when the IME gets a character of the conversion result. A window receives this message |
||
1170 | /// through its WindowProc function. |
||
1171 | /// </summary> |
||
1172 | IME_CHAR = 0x0286, |
||
1173 | |||
1174 | /// <summary> |
||
1175 | /// Sent to an application to provide commands and request information. A window receives this message through its |
||
1176 | /// WindowProc function. |
||
1177 | /// </summary> |
||
1178 | IME_REQUEST = 0x0288, |
||
1179 | |||
1180 | /// <summary> |
||
1181 | /// Sent to an application by the IME to notify the application of a key press and to keep message order. A window |
||
1182 | /// receives this message through its WindowProc function. |
||
1183 | /// </summary> |
||
1184 | IME_KEYDOWN = 0x0290, |
||
1185 | |||
1186 | /// <summary> |
||
1187 | /// Sent to an application by the IME to notify the application of a key release and to keep message order. A window |
||
1188 | /// receives this message through its WindowProc function. |
||
1189 | /// </summary> |
||
1190 | IME_KEYUP = 0x0291, |
||
1191 | |||
1192 | /// <summary> |
||
1193 | /// The WM_MOUSEHOVER message is posted to a window when the cursor hovers over the client area of the window for the |
||
1194 | /// period of time specified in a prior call to TrackMouseEvent. |
||
1195 | /// </summary> |
||
1196 | MOUSEHOVER = 0x02A1, |
||
1197 | |||
1198 | /// <summary> |
||
1199 | /// The WM_MOUSELEAVE message is posted to a window when the cursor leaves the client area of the window specified in a |
||
1200 | /// prior call to TrackMouseEvent. |
||
1201 | /// </summary> |
||
1202 | MOUSELEAVE = 0x02A3, |
||
1203 | |||
1204 | /// <summary> |
||
1205 | /// The WM_NCMOUSEHOVER message is posted to a window when the cursor hovers over the nonclient area of the window for |
||
1206 | /// the period of time specified in a prior call to TrackMouseEvent. |
||
1207 | /// </summary> |
||
1208 | NCMOUSEHOVER = 0x02A0, |
||
1209 | |||
1210 | /// <summary> |
||
1211 | /// The WM_NCMOUSELEAVE message is posted to a window when the cursor leaves the nonclient area of the window specified |
||
1212 | /// in a prior call to TrackMouseEvent. |
||
1213 | /// </summary> |
||
1214 | NCMOUSELEAVE = 0x02A2, |
||
1215 | |||
1216 | /// <summary> |
||
1217 | /// The WM_WTSSESSION_CHANGE message notifies applications of changes in session state. |
||
1218 | /// </summary> |
||
1219 | WTSSESSION_CHANGE = 0x02B1, |
||
1220 | |||
1221 | TABLET_FIRST = 0x02c0, |
||
1222 | |||
1223 | TABLET_LAST = 0x02df, |
||
1224 | |||
1225 | /// <summary> |
||
1226 | /// An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if |
||
1227 | /// any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format. |
||
1228 | /// </summary> |
||
1229 | CUT = 0x0300, |
||
1230 | |||
1231 | /// <summary> |
||
1232 | /// An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the |
||
1233 | /// clipboard in CF_TEXT format. |
||
1234 | /// </summary> |
||
1235 | COPY = 0x0301, |
||
1236 | |||
1237 | /// <summary> |
||
1238 | /// An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the |
||
1239 | /// clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data |
||
1240 | /// in CF_TEXT format. |
||
1241 | /// </summary> |
||
1242 | PASTE = 0x0302, |
||
1243 | |||
1244 | /// <summary> |
||
1245 | /// An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if |
||
1246 | /// any, from the edit control. |
||
1247 | /// </summary> |
||
1248 | CLEAR = 0x0303, |
||
1249 | |||
1250 | /// <summary> |
||
1251 | /// An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to |
||
1252 | /// an edit control, the previously deleted text is restored or the previously added text is deleted. |
||
1253 | /// </summary> |
||
1254 | UNDO = 0x0304, |
||
1255 | |||
1256 | /// <summary> |
||
1257 | /// The WM_RENDERFORMAT message is sent to the clipboard owner if it has delayed rendering a specific clipboard format |
||
1258 | /// and if an application has requested data in that format. The clipboard owner must render data in the specified |
||
1259 | /// format and place it on the clipboard by calling the SetClipboardData function. |
||
1260 | /// </summary> |
||
1261 | RENDERFORMAT = 0x0305, |
||
1262 | |||
1263 | /// <summary> |
||
1264 | /// The WM_RENDERALLFORMATS message is sent to the clipboard owner before it is destroyed, if the clipboard owner has |
||
1265 | /// delayed rendering one or more clipboard formats. For the content of the clipboard to remain available to other |
||
1266 | /// applications, the clipboard owner must render data in all the formats it is capable of generating, and place the |
||
1267 | /// data on the clipboard by calling the SetClipboardData function. |
||
1268 | /// </summary> |
||
1269 | RENDERALLFORMATS = 0x0306, |
||
1270 | |||
1271 | /// <summary> |
||
1272 | /// The WM_DESTROYCLIPBOARD message is sent to the clipboard owner when a call to the EmptyClipboard function empties |
||
1273 | /// the clipboard. |
||
1274 | /// </summary> |
||
1275 | DESTROYCLIPBOARD = 0x0307, |
||
1276 | |||
1277 | /// <summary> |
||
1278 | /// The WM_DRAWCLIPBOARD message is sent to the first window in the clipboard viewer chain when the content of the |
||
1279 | /// clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard. |
||
1280 | /// </summary> |
||
1281 | DRAWCLIPBOARD = 0x0308, |
||
1282 | |||
1283 | /// <summary> |
||
1284 | /// The WM_PAINTCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard |
||
1285 | /// contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting. |
||
1286 | /// </summary> |
||
1287 | PAINTCLIPBOARD = 0x0309, |
||
1288 | |||
1289 | /// <summary> |
||
1290 | /// The WM_VSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard |
||
1291 | /// contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's vertical scroll bar. The |
||
1292 | /// owner should scroll the clipboard image and update the scroll bar values. |
||
1293 | /// </summary> |
||
1294 | VSCROLLCLIPBOARD = 0x030A, |
||
1295 | |||
1296 | /// <summary> |
||
1297 | /// The WM_SIZECLIPBOARD message is sent to the clipboard owner by a clipboard viewer window when the clipboard |
||
1298 | /// contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area has changed size. |
||
1299 | /// </summary> |
||
1300 | SIZECLIPBOARD = 0x030B, |
||
1301 | |||
1302 | /// <summary> |
||
1303 | /// The WM_ASKCBFORMATNAME message is sent to the clipboard owner by a clipboard viewer window to request the name of a |
||
1304 | /// CF_OWNERDISPLAY clipboard format. |
||
1305 | /// </summary> |
||
1306 | ASKCBFORMATNAME = 0x030C, |
||
1307 | |||
1308 | /// <summary> |
||
1309 | /// The WM_CHANGECBCHAIN message is sent to the first window in the clipboard viewer chain when a window is being |
||
1310 | /// removed from the chain. |
||
1311 | /// </summary> |
||
1312 | CHANGECBCHAIN = 0x030D, |
||
1313 | |||
1314 | /// <summary> |
||
1315 | /// The WM_HSCROLLCLIPBOARD message is sent to the clipboard owner by a clipboard viewer window. This occurs when the |
||
1316 | /// clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal |
||
1317 | /// scroll bar. The owner should scroll the clipboard image and update the scroll bar values. |
||
1318 | /// </summary> |
||
1319 | HSCROLLCLIPBOARD = 0x030E, |
||
1320 | |||
1321 | /// <summary> |
||
1322 | /// This message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to |
||
1323 | /// realize its logical palette when it receives the focus. |
||
1324 | /// </summary> |
||
1325 | QUERYNEWPALETTE = 0x030F, |
||
1326 | |||
1327 | /// <summary> |
||
1328 | /// The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette. |
||
1329 | /// </summary> |
||
1330 | PALETTEISCHANGING = 0x0310, |
||
1331 | |||
1332 | /// <summary> |
||
1333 | /// This message is sent by the OS to all top-level and overlapped windows after the window with the keyboard focus |
||
1334 | /// realizes its logical palette. |
||
1335 | /// This message enables windows that do not have the keyboard focus to realize their logical palettes and update their |
||
1336 | /// client areas. |
||
1337 | /// </summary> |
||
1338 | PALETTECHANGED = 0x0311, |
||
1339 | |||
1340 | /// <summary> |
||
1341 | /// The WM_HOTKEY message is posted when the user presses a hot key registered by the RegisterHotKey function. The |
||
1342 | /// message is placed at the top of the message queue associated with the thread that registered the hot key. |
||
1343 | /// </summary> |
||
1344 | HOTKEY = 0x0312, |
||
1345 | |||
1346 | /// <summary> |
||
1347 | /// The WM_PRINT message is sent to a window to request that it draw itself in the specified device context, most |
||
1348 | /// commonly in a printer device context. |
||
1349 | /// </summary> |
||
1350 | PRINT = 0x0317, |
||
1351 | |||
1352 | /// <summary> |
||
1353 | /// The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device |
||
1354 | /// context, most commonly in a printer device context. |
||
1355 | /// </summary> |
||
1356 | PRINTCLIENT = 0x0318, |
||
1357 | |||
1358 | /// <summary> |
||
1359 | /// The WM_APPCOMMAND message notifies a window that the user generated an application command event, for example, by |
||
1360 | /// clicking an application command button using the mouse or typing an application command key on the keyboard. |
||
1361 | /// </summary> |
||
1362 | APPCOMMAND = 0x0319, |
||
1363 | |||
1364 | /// <summary> |
||
1365 | /// The WM_THEMECHANGED message is broadcast to every window following a theme change event. Examples of theme change |
||
1366 | /// events are the activation of a theme, the deactivation of a theme, or a transition from one theme to another. |
||
1367 | /// </summary> |
||
1368 | THEMECHANGED = 0x031A, |
||
1369 | |||
1370 | /// <summary> |
||
1371 | /// Sent when the contents of the clipboard have changed. |
||
1372 | /// </summary> |
||
1373 | CLIPBOARDUPDATE = 0x031D, |
||
1374 | |||
1375 | /// <summary> |
||
1376 | /// The system will send a window the WM_DWMCOMPOSITIONCHANGED message to indicate that the availability of desktop |
||
1377 | /// composition has changed. |
||
1378 | /// </summary> |
||
1379 | DWMCOMPOSITIONCHANGED = 0x031E, |
||
1380 | |||
1381 | /// <summary> |
||
1382 | /// WM_DWMNCRENDERINGCHANGED is called when the non-client area rendering status of a window has changed. Only windows |
||
1383 | /// that have set the flag DWM_BLURBEHIND.fTransitionOnMaximized to true will get this message. |
||
1384 | /// </summary> |
||
1385 | DWMNCRENDERINGCHANGED = 0x031F, |
||
1386 | |||
1387 | /// <summary> |
||
1388 | /// Sent to all top-level windows when the colorization color has changed. |
||
1389 | /// </summary> |
||
1390 | DWMCOLORIZATIONCOLORCHANGED = 0x0320, |
||
1391 | |||
1392 | /// <summary> |
||
1393 | /// WM_DWMWINDOWMAXIMIZEDCHANGE will let you know when a DWM composed window is maximized. You also have to register |
||
1394 | /// for this message as well. You'd have other windowd go opaque when this message is sent. |
||
1395 | /// </summary> |
||
1396 | DWMWINDOWMAXIMIZEDCHANGE = 0x0321, |
||
1397 | |||
1398 | /// <summary> |
||
1399 | /// Sent to request extended title bar information. A window receives this message through its WindowProc function. |
||
1400 | /// </summary> |
||
1401 | GETTITLEBARINFOEX = 0x033F, |
||
1402 | |||
1403 | HANDHELDFIRST = 0x0358, |
||
1404 | |||
1405 | HANDHELDLAST = 0x035F, |
||
1406 | |||
1407 | AFXFIRST = 0x0360, |
||
1408 | |||
1409 | AFXLAST = 0x037F, |
||
1410 | |||
1411 | PENWINFIRST = 0x0380, |
||
1412 | |||
1413 | PENWINLAST = 0x038F, |
||
1414 | |||
1415 | /// <summary> |
||
1416 | /// The WM_APP constant is used by applications to help define private messages, usually of the form WM_APP+X, where X |
||
1417 | /// is an integer value. |
||
1418 | /// </summary> |
||
1419 | APP = 0x8000, |
||
1420 | |||
1421 | /// <summary> |
||
1422 | /// The WM_USER constant is used by applications to help define private messages for use by private window classes, |
||
1423 | /// usually of the form WM_USER+X, where X is an integer value. |
||
1424 | /// </summary> |
||
1425 | USER = 0x0400, |
||
1426 | |||
1427 | /// <summary> |
||
1428 | /// An application sends the WM_CPL_LAUNCH message to Windows Control Panel to request that a Control Panel application |
||
1429 | /// be started. |
||
1430 | /// </summary> |
||
1431 | CPL_LAUNCH = USER + 0x1000, |
||
1432 | |||
1433 | /// <summary> |
||
1434 | /// The WM_CPL_LAUNCHED message is sent when a Control Panel application, started by the WM_CPL_LAUNCH message, has |
||
1435 | /// closed. The WM_CPL_LAUNCHED message is sent to the window identified by the wParam parameter of the WM_CPL_LAUNCH |
||
1436 | /// message that started the application. |
||
1437 | /// </summary> |
||
1438 | CPL_LAUNCHED = USER + 0x1001, |
||
1439 | |||
1440 | /// <summary> |
||
1441 | /// WM_SYSTIMER is a well-known yet still undocumented message. Windows uses WM_SYSTIMER for internal actions like |
||
1442 | /// scrolling. |
||
1443 | /// </summary> |
||
1444 | SYSTIMER = 0x118, |
||
1445 | |||
1446 | /// <summary> |
||
1447 | /// The accessibility state has changed. |
||
1448 | /// </summary> |
||
1449 | HSHELL_ACCESSIBILITYSTATE = 11, |
||
1450 | |||
1451 | /// <summary> |
||
1452 | /// The shell should activate its main window. |
||
1453 | /// </summary> |
||
1454 | HSHELL_ACTIVATESHELLWINDOW = 3, |
||
1455 | |||
1456 | /// <summary> |
||
1457 | /// The user completed an input event (for example, pressed an application command button on the mouse or an |
||
1458 | /// application command key on the keyboard), and the application did not handle the WM_APPCOMMAND message generated by |
||
1459 | /// that input. |
||
1460 | /// If the Shell procedure handles the WM_COMMAND message, it should not call CallNextHookEx. See the Return Value |
||
1461 | /// section for more information. |
||
1462 | /// </summary> |
||
1463 | HSHELL_APPCOMMAND = 12, |
||
1464 | |||
1465 | /// <summary> |
||
1466 | /// A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the |
||
1467 | /// window. |
||
1468 | /// </summary> |
||
1469 | HSHELL_GETMINRECT = 5, |
||
1470 | |||
1471 | /// <summary> |
||
1472 | /// Keyboard language was changed or a new keyboard layout was loaded. |
||
1473 | /// </summary> |
||
1474 | HSHELL_LANGUAGE = 8, |
||
1475 | |||
1476 | /// <summary> |
||
1477 | /// The title of a window in the task bar has been redrawn. |
||
1478 | /// </summary> |
||
1479 | HSHELL_REDRAW = 6, |
||
1480 | |||
1481 | /// <summary> |
||
1482 | /// The user has selected the task list. A shell application that provides a task list should return TRUE to prevent |
||
1483 | /// Windows from starting its task list. |
||
1484 | /// </summary> |
||
1485 | HSHELL_TASKMAN = 7, |
||
1486 | |||
1487 | /// <summary> |
||
1488 | /// A top-level, unowned window has been created. The window exists when the system calls this hook. |
||
1489 | /// </summary> |
||
1490 | HSHELL_WINDOWCREATED = 1, |
||
1491 | |||
1492 | /// <summary> |
||
1493 | /// A top-level, unowned window is about to be destroyed. The window still exists when the system calls this hook. |
||
1494 | /// </summary> |
||
1495 | HSHELL_WINDOWDESTROYED = 2, |
||
1496 | |||
1497 | /// <summary> |
||
1498 | /// The activation has changed to a different top-level, unowned window. |
||
1499 | /// </summary> |
||
1500 | HSHELL_WINDOWACTIVATED = 4, |
||
1501 | |||
1502 | /// <summary> |
||
1503 | /// A top-level window is being replaced. The window exists when the system calls this hook. |
||
1504 | /// </summary> |
||
1505 | HSHELL_WINDOWREPLACED = 13 |
||
1506 | } |
||
1507 | |||
1508 | #endregion |
||
1509 | |||
1510 | #region Public Methods |
||
1511 | |||
1512 | [DllImport("user32.dll")] |
||
1513 | [return: MarshalAs(UnmanagedType.Bool)] |
||
1514 | public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect); |
||
1515 | |||
1516 | [DllImport("user32.dll", EntryPoint = "RegisterWindowMessageW", SetLastError = true)] |
||
1517 | public static extern int RegisterWindowMessage(string lpString); |
||
1518 | |||
1519 | [DllImport("user32.dll", SetLastError = true)] |
||
1520 | public static extern bool RegisterShellHookWindow(IntPtr hWnd); |
||
1521 | |||
1522 | [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] |
||
1523 | public static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount); |
||
1524 | |||
1525 | [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
||
1526 | public static extern int GetWindowTextLength(IntPtr hWnd); |
||
1527 | |||
1528 | #endregion |
||
1529 | |||
1530 | #region Private Methods |
||
1531 | |||
1532 | [DllImport("user32.dll", SetLastError = true)] |
||
1533 | internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); |
||
1534 | |||
1535 | [DllImport("user32.dll", SetLastError = true)] |
||
1536 | private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); |
||
1537 | |||
1538 | #endregion |
||
1539 | |||
1540 | #region Nested Types |
||
1541 | |||
1542 | [StructLayout(LayoutKind.Sequential)] |
||
1543 | public struct RECT |
||
1544 | { |
||
1545 | public int Left; // x position of upper-left corner |
||
1546 | |||
1547 | public int Top; // y position of upper-left corner |
||
1548 | |||
1549 | public int Right; // x position of lower-right corner |
||
1550 | |||
1551 | public int Bottom; // y position of lower-right corner |
||
1552 | } |
||
1553 | |||
1554 | #endregion |
||
1555 | } |
||
1556 | } |