The FlashWindow function flashes the specified window once. BOOL FlashWindow( HWND hWnd, // handle to window to flash BOOL bInvert // flash status ); ParametershWndIdentifies the window to be flashed. The window can be either open or minimized (iconic). bInvertSpecifies 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 ValuesThe 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. ResFlashing a window means changing the appearance of its caption bar as if the window were changing from inactive to active status, or vice versa. (An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.) Typically, a window is flashed to inform the user that the window requires attention but that it does not currently have the keyboard focus. The FlashWindow function flashes the window only once; for repeated flashing, the application should create a system timer.
BOOL bInvert // flash status
);
ParametershWndIdentifies the window to be flashed. The window can be either open or minimized (iconic). bInvertSpecifies 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 ValuesThe 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. ResFlashing a window means changing the appearance of its caption bar as if the window were changing from inactive to active status, or vice versa. (An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.)
Typically, a window is flashed to inform the user that the window requires attention but that it does not currently have the keyboard focus.
The FlashWindow function flashes the window only once; for repeated flashing, the application should create a system timer.
搂主,就是flashwindow了,第一个参数是闪动窗体的handle ,第二个参数间隔时间
此外,你可以加一个TTimer控件让窗体不断闪动~~
flashwindow(application.handle,true)