Platform SDK Shell >> Display Properties / appearance / Effects / Use The following transition effect....

by info_Seeker77 » Tue, 01 Mar 2005 04:46:07 GMT

Hi,

Im after the correct sequence of calls to SystemParametersInfo to
programatically emulate a user right clicking on the desktop, display
properties, appearance, effects, and UNchecking "Use the following
transition effect for menus and tooltips"

Here's what I have (all return success (non - zero) but is not having
the required effect)

settingresult = SystemParametersInfo(SPI_SETSELECTIONFADE, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

settingresult = SystemParametersInfo(SPI_SETANIMATION, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

settingresult = SystemParametersInfo(SPI_SETMENUFADE, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

settingresult = SystemParametersInfo(SPI_SETMENUANIMATION, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

settingresult = SystemParametersInfo(SPI_SETTOOLTIPFADE, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

settingresult = SystemParametersInfo(SPI_SETTOOLTIPANIMATION, 0,
(LPVOID) FALSE, SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);

Any help would be appreciated. My app uses small directsound buffers,
and they dont put up with transition effects!!