After the program quits unexpectedly tray icon to clean up the residual method (C #)

  Program ape for downtime too familiar, if a program quit unexpectedly, then we can only find traces of it in the Windows log; if it is a tray program, after a leave, it will stay a long time can not leave in the tray until our mouse across from it; if a program is another daemon constantly kill, restart, then its results will be shown below,

  Please note! ! This is not Minesweeper! ! Yes, this is the residual icon. The solution is very simple, before every time you open the program, send a message through the window the mouse to the tray WM_MOUSEMOVE, so refreshing.

Guess you like

Origin www.cnblogs.com/boxy/p/11402966.html