注意:不是Tray图标闪动,而是任务栏。

解决方案 »

  1.   

    Notifying the User of Errors
    The following example uses FlashWindow to flash a window and MessageBeep to play the system exclamation sound. FlashWindow(hwnd, TRUE); // invert the title bar 
    Sleep(500);              // wait a bit 
    FlashWindow(hwnd, TRUE); // invert again 
     
    // Play the system exclamation sound. 
     
    MessageBeep(MB_ICONEXCLAMATION); 
      

  2.   

    恩,已经成功用FlashWindow达到目标了。还有点小问题:我只想当这个窗口不是在顶部(被别的窗口遮住了等)的时候才执行这个FalshWindow,怎么判断呢?
      

  3.   

    GetForegroundWindow Function (Windows User Interface)
    The GetForegroundWindow function returns a handle to the foreground window (the window with which the user is currently working).
      

  4.   

    GetForegroundWindow()不一定能解决问题吧?因为可能两个窗口并排的时候,一样可以看见的
      

  5.   

    GetForegroundWindow是可以的。我已经试过了。并排的时候虽然可以看见,但是只有一个是处于选中的状态,它就是ForegroundWindow。