/// <summary> /// We need to handle WM_POWERBROADCAST. /// </summary> /// <param name="message"></param> public void OnWndProc(ref Message message) { //Hook in our power manager if (iPowerSettingNotifier != null) { iPowerSettingNotifier.WndProc(ref message); } }
/// <summary> /// Broadcast messages to subscribers. /// </summary> /// <param name="message"></param> protected override void WndProc(ref Message aMessage) { //Hook in our power manager if (iPowerSettingNotifier != null) { iPowerSettingNotifier.WndProc(ref aMessage); } base.WndProc(ref aMessage); }