I am using an hwndhost element to draw DirectX content in a WPF application. When I override the WndProc for HwndHost I do get called with window messages but only by the first instance of hwndhost that I create.
Basically on the WM_PAINT message I render my DirectX scene and mark the "handled" parameter as true (I do check if the hwnd passed in the WndProc is my handle). Once I mark it as true, none of the other instances of HwndHost get the WM_PAINT message.
How can I get the other HwndHost instances to receive the WM_PAINT message?