Setting underline API hotkeys (windows)

By default, Windows (XP) only displays underlined keyboard shortcuts when ALT is pressed. This can be changed in the display properties in the Effects sub-dialog, so that hotkeys are always underlined

How can this be changed programmatically? What API call or registry setting can I use to change this setting?

+3
source share
2 answers

I found a solution on how to query and install:

BOOL b
SystemParametersInfo(SPI_GETKEYBOARDCUES, 0, &b, 0);
if (!b) {
    b = TRUE;
    SystemParametersInfo(SPI_SETKEYBOARDCUES, 0, &b, 0);
}
+3
source

Do you want to change this system-wide parameter, or do you want you to override the behavior only in your program?

, API Win32, , WM_CHANGEUISTATE: http://blogs.msdn.com/oldnewthing/archive/2005/05/03/414317.aspx , .

, , .

+2

Source: https://habr.com/ru/post/1698833/


All Articles