• last updated 22 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the list item being selected. This fixes setting the page file for the actual selected disk.

Caught by "cagey45" contributor on the forums: https://reactos.org/forum/viewtopic.php?f=9&t=16439 ; see also CORE-1151.

[INTL]

- Add custom draw function for the codepages listview.

- User gray text color for codepages that cannot be uninstalled.

CORE-13242

[INTL]

Advanced page: Show code pages again.

- Use SetupFindFirstLine and SetupFindNextLine to enumerate all code pages.

- Use heap memory functions instead of global memory functions.

- Get rid of TCHAR.

- Rename LPCPAGE to PCPAGE.

- Hack: Do not fail if EnumSystemCodePages returns FALSE.

[DESK.CPL] -Addendum to 74506 which was a bit rushed. Make it possible to apply a theme that was opened by double click. Also add the active theme in the list of themes if it was not enumerated in the themes directory.
More build fixes.
Fix build.
[DESK.CPL] -Implement opening msstyles files.
[CONSOLE.CPL]: Fix the console window preview:

- turn it into a custom control;

- supports dynamic preview area depending on the actual current monitor screen resolution;

(note that on ReactOS, the WM_DISPLAYCHANGE is not correctly sent, see CORE-13212, therefore this functionality won't show up yet)

- supports correct rescaling of the console preview drawn in the preview area;

- supports dependence of the console preview with respect to the chosen font character dimensions.

The code is there, it may be a little bit improved in the future.

CORE-13196 #resolve

Other additions:

- Add a few space between the console preview text window border and the text sample;

- PaintText and PaintStaticControls do not need to return anything.

  1. … 11 more files in changeset.
[CONSOLE.CPL]: Minor modifications:

- Use "hDlg" (as done in the rest of the code) instead of "hwndDlg";

- Refresh the console window preview whenever a dimension or a position was changed.

[CONSOLE.CPL]: Simplify the color selection code by factorizing common parts.
[INTL]

- Get rid of the individual getter funtions. Use GetSelectedComboBoxIndex for all CBS_DROPDOWNLIST comboboxes and GetSelectedComboBoxText for all CBS_DROPDOWN comboboxes.

- Check the relevant settings only!

- Rename SetXxxSettings to GetXxxSettings because it is a getter function.

- Handle the bogus WM_COMMAND/EN_CHANGE message that is sent when the IDC_SECONDYEAR_EDIT edit control is initialized. Controls should NEVER send notifications when they are modified programmatically! :-/

[INTL]

Changed locale options doesn't reload correctly before next reboot.

- Added SetNumberSetting, SetCurrencySetting, SetDateSetting and SetTimeSetting functions to get and check values.

- Don't directly change pGlobalData.

- Post WM_WININICHANGE after all changes have been applied.

Based on a patch by Katayama Hirofumi MZ.

CORE-10170

[MMSYS]

- Simplify code by using windowsx.h. Patch by Katayama Hirofumi MZ.

CORE-12903

[MMSYS]

- Make browse dialog title and filter localizable. Based on a patch by Katayama Hirofumi MZ.

CORE-12903

  1. … 10 more files in changeset.
[MMSYS]

- Pass byte counts to RegQueryValueEx instead of character counts. Based on a patch by Katayama Hirofumi MZ.

CORE-12903

[MMSYS]

Patch by Katayama Hirofumi MZ:

- Use _countof where appropriate

- Prefer sizeof(variable) to sizeof(TYPE)

CORE-12903

[CONSOLE.CPL]: Spanish translation update by Javier Fernandez, thanks!

CORE-13187 #resolve

[CONSOLE.CPL]: Fix the console props color buttons (was broken by r74468). Noted by Katayama Hirofumi MZ, thanks!

CORE-13186 #resolve

[CONSOLE.CPL]: Rewrite the way we deal with console font samples in the console properties dialog:

- Remove the font helper functions that were already moved into concfg/font.c in r74462, and use the latter instead.

- Use a double list for listing the available font sizes for a given face:

* a ListBox for raster fonts;

* a ComboBox for TrueType fonts, allowing the user to specify a custom size.

The raster ListBox is wrapped using the LIST_CTL structure so that we can use

the bisection functions on it.

- Allow the user to specify TrueType font size either in pixels or in points. Raster font sizes however are always in pixels.

- Try to remember the nearest font size across different selected face changes.

- Try to support custom-sized TrueType fonts (using the ComboBox's edit field). May need more improvements!

- Retrieve the correct character cell height & width size in pixels when selecting a font (especially when it's a TrueType one).

- We now support bold console fonts too, see CORE-13122 (thanks Katayama!).

- Remove the commented-out "temporary code for future reference".

- Use a global cached font "hCurrentFont" that gets initialized when the console properties applet is created,

so that we now can have a correct font in the screen samples when one directly views e.g. the "Color" tab,

without going first in the "Font" tab. This current font is of course updated whenever one changes the font settings.

Tested with success on Windows 2003, Windows 7 and on ReactOS.

CORE-13122 CORE-13182 #resolve

[CONSOLE.CPL]: Minor code refactoring (cont.):

- Use 'hDlg' for the dialog window handle variable (instead of hwndDlg), as already done in other parts of the code;

- Use our regular formatting for function prototypes;

- Use explicit unicode functions;

In addition:

- Correctly check for the dialog controls notifications (within WM_COMMAND message);

- Update the current code page when the code page combobox selection changes, but only notify the property sheet of the change when the combobox contents is validated (either the user pressed ENTER in some way, or the combobox lost its focus).

[CONSOLE.CPL]: Minor code refactoring:

- Move the bisection functions into their own source file, and make them a bit more general so that they can be used on other types of list structures than win32 combo-boxes.

- Adjust the code in options.c to reflect those changes.

[CONSOLE.CPL]: Harmonize most of the resources (sizes of dialog controls for some dialogs), and add some new controls in the font dialog that will be used soon.

To translators: Please check that I haven't broken any translations! :)

CORE-13182

  1. … 7 more files in changeset.
[INTL]

Added initialization of IDC_CURRENCYGRPNUM.

Patch by Katayama Hirofumi MZ.

CORE-10170

[INTL]

- Get rid of alloca, malloc and free.

- Always check the return values of HeapAlloc.

- Rename fUserLocaleChanged to bUserLocaleChanged and fGeoIdChanged to bGeoIdChanged.

- Use WCHAR instead of TCHAR.

- Fix indentation and coding style.

- Remove setupreg.c because it is an unused copy of misc.c.

[CONSOLE.CPL]: Simplify some parts of font.c code.

- Use a helper function "AddFontToList" to add font names into the font list;

- Use string-safe functions where needed.

[ACCESS]: Fix french el-typo, noticed by Kyle Katarn. Thanks!

CORE-12482

[CONSOLE]

- Fix build

CORE-12451

[CONSOLE.CPL]: Addendum to r74397: Fix a cast.
[CONSOLE.CPL]: Add a list of available code pages in the console properties dialog.

Display a list of available code pages, as done on Windows (NT/2k/2k3/Vista/7/8, when a CJK language is selected, and as always done on Windows 10 for all languages).

But contrary to Windows, do not limit this list to only CJK + CP-437 codepages, but list *all* the available CPs, retrieved from the registry. These CPs are also those available when using the "chcp" or "mode con cp" commands.

And contrary to Windows (where this is done only for the general console properties), always allow the user to view or change the code page even from the console properties dialog.

[CONSRV]: Support changing the current code page from the console properties dialog.

CORE-12451

  1. … 11 more files in changeset.
[INPUT.CPL]

- Remove an unneeded header inclusion;

- Fix a sizeof invocation;

- RegEnumKeyExW and RegEnumValueW take their fourth parameter (size of key / value name, resp.) as a size in number of *characters* (and not in number of bytes);

- Add a missing RegCloseKey call in LocaleList_Create.