Skip to content

Is it possible to subscribe to windows messages loop in win ui 3? #8934

Answered by castorix
roshannzth asked this question in Q&A
Discussion options

You must be logged in to vote

how do I subscribe to windows loop in win ui.

With SetWindowSubclass (from WinRT.Interop.WindowNative.GetWindowHandle in C#)
(I used it for example in WinUI3_NotifyIcon mainly to handle the custom Tray message (WM_TRAYMOUSEMESSAGE in MainWindow.xaml.cs)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roshannzth
Comment options

Answer selected by roshannzth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants