mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-20 12:22:45 +12:00
36 lines
866 B
C#
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() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|