Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jan : Detect whether application is themed or not
| Subject: | Detect whether application is themed or not |
| Posted by: | "ahmoy" (ahmoyl..@gmail.com) |
| Date: | 25 Jan 2008 20:47:39 |
Hi there,
Is there anything wrong with my code here to detect application
is themed or not
if (IsAppThemed) and (IsThemeActive) then
aTheme := OpenThemData(Handle, 'BUTTON')
else
aTheme := 0;
currently my control will draw using theme function irregardless whether i have enabled runtime theme or not.
Thanks in advance,
Ahmoy