What windows messages must I handle when I host a Win32 window inside a WPF control?

174 views Asked by At

So far, I only know I must listen for WM_CLOSE, which is a request to close, and WM_DESTROY, which is when the window is actually destroyed after closing. I need to handle these because I need to avoid a useless Win32 host view with a closed Win32 window.

Are there any other termination type messages? I wouldn't mind knowing if the module hosting the window is unstable for some reason, which would also force me to close my host view.

0

There are 0 answers