小弟在应用程序中为了实现窗体标题栏的闪烁功能,调用了函数FlashWindowEx函数,具体代码如下:
var
  info: TFlashWInfo;
begin
  with info do begin
    info.cbSize := SizeOf(info);
    hwnd := Application.Handle;
    dwFlags := FLASHW_TRAY + FLASHW_TIMERNOFG;
    uCount := 0;
    dwTimeout := 0;
  end;
  FlashWindowEx(info);
end;
由于代码是在网络上查找的,虽然实现了功能,但是我还是弄不明白TFlashWInfo结构中每个数据项的具体含意,DELPHI的帮助中好像查不到,希望哪位大侠告知,小弟不甚感激!

解决方案 »

  1.   

    cbSize :Size of the structure, in bytes. hwnd :Handle to the window to be flashed. The window can be either opened or minimized. dwFlags :Flash status. This parameter can be one or more of the following values. Value Meaning FLASHW_STOP    Stop flashing. The system restores the window to its original state. FLASHW_CAPTION   Flash the window caption. FLASHW_TRAY   Flash the taskbar button. FLASHW_ALL   Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags. FLASHW_TIMER   Flash continuously, until the FLASHW_STOP flag is set. FLASHW_TIMERNOFG   Flash continuously until the window comes to the foreground. uCount  Number of times to flash the window. dwTimeout  Rate at which the window is to be flashed, in milliseconds. If dwTimeout is zero, the function uses the default cursor blink rate.