From ddfad23ac19fa81c3e41b7529aba6a76ea4d0b30 Mon Sep 17 00:00:00 2001 From: dahall Date: Sun, 20 Dec 2020 08:28:33 -0700 Subject: [PATCH] Removed incorrect FlagsAttribute from WindowMessage enum and removed duplicate, unused WM_HSHELL values --- PInvoke/User32/User32_WindowMessage.cs | 82 +++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 32 deletions(-) diff --git a/PInvoke/User32/User32_WindowMessage.cs b/PInvoke/User32/User32_WindowMessage.cs index 9061fc41..53bf1c3d 100644 --- a/PInvoke/User32/User32_WindowMessage.cs +++ b/PInvoke/User32/User32_WindowMessage.cs @@ -5,7 +5,7 @@ namespace Vanara.PInvoke public static partial class User32 { /// Windows Messages - [Flags] + //[Flags] public enum WindowMessage { /// @@ -436,6 +436,24 @@ namespace Vanara.PInvoke /// The WM_SYNCPAINT message is used to synchronize painting while avoiding linking independent GUI threads. WM_SYNCPAINT = 0x0088, + /// + WM_UAHDESTROYWINDOW = 0x0090, + + /// + WM_UAHDRAWMENU = 0x0091, + + /// + WM_UAHDRAWMENUITEM = 0x0092, + + /// + WM_UAHINITMENU = 0x0093, + + /// + WM_UAHMEASUREMENUITEM = 0x0094, + + /// + WM_UAHNCPAINTMENUPOPUP = 0x0095, + /// /// The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient area of the window. This /// message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. @@ -1335,47 +1353,47 @@ namespace Vanara.PInvoke /// WM_SYSTIMER = 0x118, - /// The accessibility state has changed. - WM_HSHELL_ACCESSIBILITYSTATE = 11, + ///// The accessibility state has changed. + //WM_HSHELL_ACCESSIBILITYSTATE = 11, - /// The shell should activate its main window. - WM_HSHELL_ACTIVATESHELLWINDOW = 3, + ///// The shell should activate its main window. + //WM_HSHELL_ACTIVATESHELLWINDOW = 3, - /// - /// The user completed an input event (for example, pressed an application command button on the mouse or an application command - /// key on the keyboard), and the application did not handle the WM_APPCOMMAND message generated by that input. If the Shell - /// procedure handles the WM_COMMAND message, it should not call CallNextHookEx. See the Return Value section for more information. - /// - WM_HSHELL_APPCOMMAND = 12, + ///// + ///// The user completed an input event (for example, pressed an application command button on the mouse or an application command + ///// key on the keyboard), and the application did not handle the WM_APPCOMMAND message generated by that input. If the Shell + ///// procedure handles the WM_COMMAND message, it should not call CallNextHookEx. See the Return Value section for more information. + ///// + //WM_HSHELL_APPCOMMAND = 12, - /// - /// A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the window. - /// - WM_HSHELL_GETMINRECT = 5, + ///// + ///// A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the window. + ///// + //WM_HSHELL_GETMINRECT = 5, - /// Keyboard language was changed or a new keyboard layout was loaded. - WM_HSHELL_LANGUAGE = 8, + ///// Keyboard language was changed or a new keyboard layout was loaded. + //WM_HSHELL_LANGUAGE = 8, - /// The title of a window in the task bar has been redrawn. - WM_HSHELL_REDRAW = 6, + ///// The title of a window in the task bar has been redrawn. + //WM_HSHELL_REDRAW = 6, - /// - /// The user has selected the task list. A shell application that provides a task list should return TRUE to prevent Windows from - /// starting its task list. - /// - WM_HSHELL_TASKMAN = 7, + ///// + ///// The user has selected the task list. A shell application that provides a task list should return TRUE to prevent Windows from + ///// starting its task list. + ///// + //WM_HSHELL_TASKMAN = 7, - /// A top-level, unowned window has been created. The window exists when the system calls this hook. - WM_HSHELL_WINDOWCREATED = 1, + ///// A top-level, unowned window has been created. The window exists when the system calls this hook. + //WM_HSHELL_WINDOWCREATED = 1, - /// A top-level, unowned window is about to be destroyed. The window still exists when the system calls this hook. - WM_HSHELL_WINDOWDESTROYED = 2, + ///// A top-level, unowned window is about to be destroyed. The window still exists when the system calls this hook. + //WM_HSHELL_WINDOWDESTROYED = 2, - /// The activation has changed to a different top-level, unowned window. - WM_HSHELL_WINDOWACTIVATED = 4, + ///// The activation has changed to a different top-level, unowned window. + //WM_HSHELL_WINDOWACTIVATED = 4, - /// A top-level window is being replaced. The window exists when the system calls this hook. - WM_HSHELL_WINDOWREPLACED = 13 + ///// A top-level window is being replaced. The window exists when the system calls this hook. + //WM_HSHELL_WINDOWREPLACED = 13 } } } \ No newline at end of file