[windev] opposite of SC_MONITORPOWER?

Mark McGinty mmcginty at dbunwired.com
Thu Jul 16 11:07:19 GMT 2009


Greets,
 
I'm processing WM_SYSCOMMAND -> SC_MONITORPOWER to detect when the
monitor[s] get turned off due to inactivity -- no issues there.  But I also
want to know when the monitor[s] get turned back on again.  WM_SYSCOMMAND ->
SC_MONITORPOWER has no parameter value for this, it's 1 for going to low
power, 2 for going power off, and... that's it.
 
I sort-of expected WM_POWERBROADCAST to notify me of this, but it doesn't
seem to know anything about monitor power (only system power.)
 
I logged the message traffic after the screens kick on, I guess I can infer
from WM_ACTIVATE or something -- oh man!  I only get WM_SYSCOMMAND ->
SC_MONITORPOWER if my app is active when it happens?  That's lame!
 
So I suppose I need a global msg hook?  Or is there some other way to detect
this event?
 
 
TIA,
MM
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.windev.org/pipermail/windev/attachments/20090716/df45662e/attachment.htm


More information about the Windev mailing list