1

How to notify Windows system that some appearance settings has been changed by my program?

I'm working with:

HKEY_CURRENT_USER\Control Panel\Desktop -> FontSmoothing + FontSmoothingType

What is a standard way? Maybe there is some message. Where to send it?

KARPOLAN
  • 2,507
  • 1
  • 19
  • 10

1 Answers1

4

Don't modify the registry directly.

Instead, call the SystemParametersInfo function:

SystemParametersInfo(SPI_SETFONTSMOOTHING, TRUE, NULL, SPIF_UPDATEINIFILE);
SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964