How can I create a WPF Window that is hidden from the world but can still receive WndProc messages? If I set the visibility to Hidden or Collapsed no messages are received by WndProc!
Asked
Active
Viewed 170 times
1
-
What messages are you expecting? – Scott Nimrod Mar 11 '15 at 19:19
-
`DBT_DEVICEARRIVAL` and `DBT_DEVICEREMOVECOMPLETE`. I'm porting some WinForms code to WPF and the old WinForms project had a hidden window that took care of registering for device notifications – thndrwrks Mar 11 '15 at 19:27
-
Have you considered hosting the Winforms Window in your WPF app? – Scott Nimrod Mar 11 '15 at 19:28
-
The helpful answer is given http://stackoverflow.com/a/2575839/3780573. – thndrwrks Mar 11 '15 at 19:34