[UXTHEME] Implement SetSystemVisualStyle (#7864)

Implement SetSystemVisualStyle based on function and flags found at https://stackoverflow.com/a/1036903 and 
https://pinvoke.net/default.aspx/uxtheme.SetSystemVisualStyle
This commit is contained in:
Whindmar Saksit 2025-06-21 18:56:48 +02:00 committed by GitHub
parent 99b99bda0f
commit e307cad501
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 82 additions and 15 deletions

View file

@ -81,10 +81,18 @@ HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName,
HRESULT WINAPI CloseThemeFile(HTHEMEFILE hThemeFile);
#define UXTAPPLYFLAG_LOADSYSTEMMETRICS 0x01 // https://stackoverflow.com/a/1036903
#define UXTAPPLYFLAG_APPLYSYSTEMMETRICS 0x20 // https://stackoverflow.com/a/1036903
HRESULT WINAPI ApplyTheme(HTHEMEFILE hThemeFile,
char *unknown,
UINT Flags,
HWND hWnd);
HRESULT WINAPI SetSystemVisualStyle(PCWSTR pszStyleFile,
PCWSTR pszColor,
PCWSTR pszSize,
UINT Flags);
HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName,
LPWSTR pszColorName,
DWORD dwColorNameLen,