06-09-2012, 08:36 PM
I think I will try something easier and just have different dialog settings (size, bmp's etc) for different themes that might be running on the computer. I just need to find out how to programatically determine the theme.
I found this
http://blog.shekharpro.com/2010/12/get-c...theme.html
and tried to implement their code example
in QM like this:
but fails to return anything.
Any thoughts?
Thanks,
S
I found this
http://blog.shekharpro.com/2010/12/get-c...theme.html
and tried to implement their code example
public string GetTheme() { string RegistryKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes"; string theme; theme = (string) Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty); theme = theme.Split('\\').Last().Split('.').First().ToString(); return theme;in QM like this:
str CurrentTheme
str RegistryKey = "\Software\Microsoft\Windows\CurrentVersion\Themes"
_i = rget(CurrentTheme "CurrentTheme" RegistryKey "HKEY_CURRENT_USER")
out _i
out CurrentThemeAny thoughts?
Thanks,
S
