// This article aims to provide an idea <br/> // app-> temp. I is an integer, app-> base. mainwindow is the target window handle. Pay attention to the window extended attributes required by setlayered;wattributes <br/> // function: animatewindow <br/> // purpose: fade out window <br/> // <br/> void animatewindow () <br/>{< br/> showwindow (app-> base. mainwindow, sw_show); <br/> for (app-> temp. I = 0; app-> temp. I <= 188; app-> temp. I ++) <br/>{< br/> setlayeredtes wattributes (app-> base. mainwindow, null, (byte) app-> temp. i, lwa_alpha); <br/> updatewindow (app-> base. mainwindow); <br/> sleep (10); <br/>}< br/> // <br/> // function: animate0000we <br/> // purpose: fade-in window <br/> // <br/> void animate0000we () <br/>{< br/> for (app-> temp. I = 187; app-> temp. i> 0; app-> temp. I --) <br/>{< br/> setlayeredwindowattributes (app-> base. mainwindow, null, (byte) app-> temp. i, lwa_alpha); <br/> updatewindow (app-> base. mainwindow); <br/> sleep (6); <br/>}< br/> // rrrfff Feng