|
From: andrew7 <bd...@us...> - 2006-12-16 15:48:56
|
Update of /cvsroot/smartwin/SmartWin/source In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5630/source Modified Files: Application.cpp Log Message: Only SPI_SETUIEFFECTS if needed, thus avoiding uneeded desktop refresh. Index: Application.cpp =================================================================== RCS file: /cvsroot/smartwin/SmartWin/source/Application.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- Application.cpp 18 Aug 2006 19:08:11 -0000 1.42 +++ Application.cpp 16 Dec 2006 15:48:51 -0000 1.43 @@ -99,8 +99,12 @@ void Application::neededSmartWinInit() { #ifndef WINCE - BOOL enable = TRUE; - ::SystemParametersInfo( SPI_SETUIEFFECTS, 0, & enable, 0 ); + BOOL enable; + ::SystemParametersInfo( SPI_GETUIEFFECTS, 0, & enable, 0 ); + if ( ! enable ) { + enable = TRUE; + ::SystemParametersInfo( SPI_SETUIEFFECTS, 0, & enable, 0 ); + } #endif // Initializing Common Controls... |