Skip to content

Fix the wrong description about the order that hooks are called in HwndSource.AddHook(HwndSourceHook) Method #8511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xml/System.Windows.Interop/HwndSource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@

The <xref:System.Windows.Interop.HwndSourceHook> delegate resembles the parameter profile of a Win32 main window procedure. All window messages that the main window procedure of the <xref:System.Windows.Interop.HwndSource> parent window receives are also forwarded to the <xref:System.Windows.Interop.HwndSourceHook> delegates.

Hooks are called in the order that they were added. If any hook returns `handled`=`true` for a message, the hooks after it in the call order are not called for that message.
Hooks are called in the reverse order that they were added. If any hook returns `handled`=`true` for a message, the hooks after it in the call order are not called for that message.

]]></format>
</remarks>
Expand Down