如题。

解决方案 »

  1.   

    FlashWindow
    The FlashWindow function flashes the specified window once, whereas the FlashWindowEx function flashes a specified number of times. BOOL FlashWindow(
      HWND hWnd,     // handle to window to flash
      BOOL bInvert   // flash status
    );
     
    Parameters
    hWnd 
    Handle to the window to be flashed. The window can be either open or minimized (iconic). 
    bInvert 
    Specifies whether the window is to be flashed or returned to its original state. The window is flashed from one state to the other if this parameter is TRUE. If it is FALSE, the window is returned to its original state (either active or inactive). When an application is iconic, if this parameter is TRUE, the taskbar window button flashes active/inactive. If it is FALSE, the taskbar window button flashes inactive, meaning that it does not change colors. It flashes, as if it were being redraw, but it does not provide the visual invert clue to the user. 
    Return Values
    The return value specifies the window's state before the call to the FlashWindow function. If the window was active before the call, the return value is nonzero. If the window was not active before the call, the return value is zero. 
      

  2.   

    FlashWindowEx(FLASHWINFO pfwi)怎么用不了,说没定义。难道还需要INCLUDE某些文件?
      

  3.   

    你查找一下该函数需要什么头文件和.LIB文件。
      

  4.   

    我看过,MSDN里说是在winuser.h里声明了,lib 是user32.lib,我查看过WINUSER.h,里面没有
    FlashWindowEx(FLASHWINFO pfwi)的声明,只有FlashWindow的声明。难道是我的版本有问题?
      

  5.   

    我记得用SetForegroundWindow就可以
    这个函数其实不能让最小化的窗口复原
    只能在任务条上闪烁
    用FlashWindow应该也可以