Alright, I have an app... A plain old window, created with my wrapped WindowClass.
It runs just fine, no problems ever...
Well, I opened it up and left it open, went and did some stuff, came back to the comp..my moniter had turned off due to the energy saving options I have it to turn off in 10 minutes. So I moved the mouse to restore the screen to see that my app had an error. The rest of windows didnt' redraw from this error, so I had to restart.
To proove it was the energy saver turning off the moniter to cause the error. I set it to 1 minutes, opened my app...as soon as it turned off, I moved the mouse to restore the moniter and the error was there.
This is a plain window with a few subclassed controls.
The only GUI I use would be Begin/EndPaint on WM_PAINT for the window.
Is there a msg I need to handle in WNDPROC to deal with MoniterSuspension??




Reply With Quote