Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : Using XP themes in a DLL

www.cryer.info
Managed Newsgroup Archive

Using XP themes in a DLL

Subject:Using XP themes in a DLL
Posted by:"Darren McBride" (mcbri..@eircom.net)
Date:Fri, 25 Mar 2005 12:51:45

Folks,

I have written a form which is wrapped in a DLL. This DLL is called by a
Windows Service program, and hence is not operating under the primary
desktop process of the current user (and hence, I presume) no themes.

If I want to force a form, invoked from a DLL by a Windows Service program,
that I must force the DLL to initiate the theme of the user currently logged
in (if there is one), or to assume no theme if there is no current user.

Has anyone any idea how I can find out the theme of the current user and
force it to be used by the form in my DLL ? How can I force my DLL to load
the default XP theme even if there is no current user ?

Thanks in advance,
Darren

Replies:

www.cryer.info
Managed Newsgroup Archive