You'll need the taskbar's handle which you can get from WidgetSet.AppHandle.


uses JwaWindows, InterfaceBase;

procedure TForm1.Button1Click(Sender: TObject);
var
  i: FLASH_INFO;
begin
  i.cbSize := sizeof(i);
  i.hwnd := WidgetSet.AppHandle;
  i.dwFlags := FLASHW_TRAY or FLASHW_TIMERNOFG;
  i.uCount := 0;
  i.dwTimeout := 0;
  FlashWindowEx(i);
end;  

Am 12.06.2015 um 22:25 schrieb Richard Mace:
> ​Hi,
> I am trying to work out how to flash the taskbar icon in Windows 7,
> like Skype does, pragmatically. I have googled, and the closest I
> found was FlashWindowEx, but that doesn't actually flash the icon,
> just the form window.
>
> Any ideas?
>
> Thanks
>
> Richard​
>
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to