BOOL IsThemeActiveEx()
...{
HINSTANCE hDll=LoadLibrary(CString((LPCTSTR)IDS_UTIL_UXTHEME)); // 'UxTheme.dll'
if(hDll==NULL) return FALSE; // the DLL won't be available on anything except Windows XP
UINT (PASCAL *pfnIsThemeActive)();
(FARPROC&)pfnIsThemeActive=GetProcAddress(hDll,CString((LPCTSTR)IDS_UTIL_THEMEACT)); // 'IsThemeActive'
UINT uiThemeActive=0;
if(pfnIsThemeActive)
uiThemeActive=pfnIsThemeActive();
FreeLibrary(hDll);
return uiThemeActive?TRUE:FALSE;
}
1179

被折叠的 条评论
为什么被折叠?



