MDI Parent not getting wndproc messages
Posted on 2010-09-23
I have an MDI application where I need to trap the start of the screen saver. I have set up an ifiltermessage for the parent form to check for the sc_screensaver message. But, it only receives the message if the MDI parent has focus.
The MDI children are other apps that I set the parent hwnd to my MDI parent... So, I cannot add code to these MDI children.
My only hope is to find a means of globally reading messages for my app, even when the parent window is not the top window (only the top window of an application will receive messages).
If you can help, I would be grateful.