I have an MFC Dialog app that needs to handle WM_POWERBROADCAST so I can avoid standby mode.


In VS2005, I click my Dialog Class in Class View, then in the Class's Properties on the right, I click the Messages Button to view the available messages. There are many WM_ messages, but nothing to do with power. WM_POWERBROADCAST is not in the list.


How do I handle WM_POWERBROADCAST in MFC?