I am uing the following in WinForms. How do I use it in WPF?
protected override void WndProc(ref Message msg)
{
unsafe
{
if (msg.Msg == 123)
{
......
}
}
base.WndProc(ref msg);
}

Vaikesh K PRank #808 · 2.8K reputationPosted Aug 19, 2015, 5:41 AM EDT
Refer these tutorials
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 19, 2015, 5:44 AM EDT
NAGARAJAN R6 reputationPosted Aug 19, 2015, 6:05 AM EDT
Karthik Kallakuri8 reputationPosted Sep 6, 2015, 7:10 AM EDT
https://social.msdn.microsoft.com/Forums/vstudio/en-US/6b97a6de-0480-4339-8ed0-cb7cdb27bd83/wpf-and-wndproc-question?forum=wpf