共用方式為


Keyboard Preference Parameter

The keyboard preference parameter indicates that the user relies on the keyboard instead of the mouse, so applications should display keyboard interfaces that would otherwise be hidden.

The user controls the setting of the keyboard preference parameter by using the Accessibility Control Panel application or another application for customizing the environment. Applications use the SPI_GETKEYBOARDPREF and SPI_SETKEYBOARDPREF flags with the SystemParametersInfo function to get and set the keyboard preference parameter.

Additionally, on Windows 2000, users can set a parameter that indicates whether menu access keys are always underlined. Applications use the SPI_GETMENUUNDERLINES and SPI_SETMENUUNDERLINES flags with the SystemParametersInfo function to get and set the menu underlines parameter.

When an application receives a WM_SETTINGCHANGE message for either the keyboard preference or menu underline parameter, it is recommended that the application call SystemParametersInfo to update the information for both parameters.

Note that SPI_GETMENUUNDERLINES is the same as SPI_GETKEYBOARDCUES, and SPI_SETMENUUNDERLINES is the same as SPI_SETKEYBOARDCUES.