OnTopReplica/src/OnTopReplica/MessagePumpProcessors/FlashCloner.cs
Lorenz Cuno Klopfenstein a7774b6677 Code re-org
2018-04-10 18:52:40 +02:00

36 lines
866 B
C#

using OnTopReplica.Native;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OnTopReplica.MessagePumpProcessors {
/// <summary>
/// Automatically clones windows that are flashing.
/// </summary>
class FlashCloner : BaseMessagePumpProcessor {
public override bool Process(ref System.Windows.Forms.Message msg) {
if (false &&
msg.Msg == HookMethods.WM_SHELLHOOKMESSAGE) {
int hookCode = msg.WParam.ToInt32();
if (hookCode == HookMethods.HSHELL_FLASH) {
IntPtr flashHandle = msg.LParam;
Form.SetThumbnail(new WindowHandle(flashHandle), null);
}
}
return false;
}
protected override void Shutdown() {
}
}
}