Board index » cppbuilder » Changing Desktop background
Bsisko
![]() CBuilder Developer |
Changing Desktop background2005-04-19 01:49:50 AM cppbuilder53 I'm trying to write an application to control the Windows XP desktop! Specifically speaking, on how to change the background picture on a daily basis. Basically, I have 2 problems: 1) I have a book "Win32 Programming API Bible" that instructs me on how to get a thread for the Desktop, but I get the compiler error "function is not a member of Application" for GetCurrentThreadID(). I'm using something like this HDESK hDesktop = GetThreadDesktop( GetCurrentThreadID() ) This will get me the desktop handle: 2.) Once I got the desktop handle, how do I find out which thread controls the background image, or Active Desktop function as XP calls it. Thanks, Freedom comes when you learn to let go, Creativity comes from when you learn to say No! ~ Madonna |