End Google Ads 201810 - BS.net 01 --> I am in the process of re-writing an application. I cut and pasted the code to test if the OS and application are themed from the old version. Even though a manifest is in the resource file and the app clearly has themes enabled (all the controls are themed) the IsAppThemed function returns FALSE??? The code is:

bool WindowsTheme::CheckThemeActive()
{
PFNISAPPTHEMED pfnIsAppThemed = reinterpret_cast(GetProcAddress(themeDllHandle_, "IsAppThemed"));
PFNISTHEMEACTIVE pfnIsThemeActive = reinterpret_cast(GetProcAddress(themeDllHandle_, "IsThemeActive"));

if(pfnIsAppThemed && pfnIsThemeActive && pfnIsAppThemed() && pfnIsThemeActive())
return true;
return false;
}


IsThemeActive returns TRUE. The display settings under Properties for the .exe has visual styles enabled. I'm at a loss to explain what is happening so any help much appreciated.