reactos/dll/cpl/input
Hermès Bélusca-Maïto dbe4abab4f
[KBSWITCH][INPUT.CPL] Correctly do the input language indicator.
Addendum to commits 5f4bb73e and c6ccb92b.

- GetLocaleInfo() returns an int, not a bool: makes it clear in the test.

- No need to use StringCchCopy() to just initialize two chars to the
  same value.

- The question about the test in https://github.com/reactos/reactos/pull/4723#discussion_r981331634
  was meant to discover that CreateDIBSection() was unnecessary, since
  the very original code (before commit 0991cedc) did not use it and was
  working fine in that regard. The simple fix was to use GetDC(NULL).

- Use SM_CXSMICON/SM_CYSMICON metrics for the KBSWITCH indicator as well.

- Override the font size obtained from SPI_GETICONTITLELOGFONT with a
  known one (allows to get a correct indicator even if the user font
  is very large).

- Do the initialization in such a way that in case SPI_GETICONTITLELOGFONT
  or CreateFontIndirect fails, we always fall back to the default stock
  font that is ensured to always exist.

- Initialize *all* the fields of the IconInfo structure.
2022-09-29 04:06:17 +02:00
..
lang [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
resources [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
add_dialog.c [USER32][INPUT] Support various keyboard layouts (#4666) 2022-09-16 08:09:37 +09:00
advanced_settings_page.c
CMakeLists.txt [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
edit_dialog.c
input.c [CPL] Boundary check of Control Panel applets (#4706) 2022-09-17 13:59:51 +09:00
input.h [USER32][INPUT] Support various keyboard layouts (#4666) 2022-09-16 08:09:37 +09:00
input.rc [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
input.spec [SPEC] Add missing newlines 2019-03-06 00:40:29 +01:00
input_list.c [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
input_list.h [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
key_sequence_dialog.c
key_settings_dialog.c
layout_list.c [USER32][INPUT] Support various keyboard layouts (#4666) 2022-09-16 08:09:37 +09:00
layout_list.h [USER32][INPUT] Support various keyboard layouts (#4666) 2022-09-16 08:09:37 +09:00
locale_list.c
locale_list.h
resource.h [CPL][INPUT] Make the ListView a TreeView (#4726) 2022-09-29 07:31:43 +09:00
settings_page.c [KBSWITCH][INPUT.CPL] Correctly do the input language indicator. 2022-09-29 04:06:17 +02:00