- // NB: it doesn't seem to matter what we put in wParam, whether we
- // include just one UISF_XXX or both, both are affected, no idea
- // why
- ::SendMessage(GetHwnd(), WM_UPDATEUISTATE,
- MAKEWPARAM(action, UISF_HIDEFOCUS | UISF_HIDEACCEL), 0);
+ // we send WM_CHANGEUISTATE so if nothing needs changing then the system
+ // won't send WM_UPDATEUISTATE
+ ::SendMessage(GetHwnd(), WM_CHANGEUISTATE, MAKEWPARAM(action, state), 0);