answer coming.
Main Topics
Browse All Topicshow would one move a graphical object (drawing/ sprite) across the desktop?
it's not just a transparent createwindow() is it?
if some-one can tell me how/ where to draw it... I'll figure out how to move it...
I'm currently using Visual C++ v.5...or MASM.... thanks tons...
jack
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can draw in the desktop just as WxW suggested. but that is likely to have problems. You may draw on top of icons and then you have to get the icons repainted that sort of thing. It might be necessarry to go with that approach, but I would try something different first.
I would try to create a window that you can draw in and move that window. Now this approach might be too slow. But if not, it is probably the best solution. (It is less likely to lead to nasty problems now or in the future,.)
What you should do is create a borderless window and use SetWindowRgn to set the window to the shape of th sprite. Then you just draw the sprite inside the window durring the WM_PAINT event. You move the sprite using MoveWindow() or SetWindowPos().
That's just a sketch to the approach I would take. If you have questions, ask.
Business Accounts
Answer for Membership
by: WxWPosted on 1998-06-12 at 03:12:13ID: 1165717
You can get the desktop handle by using GetDesktopWindow() .
I am not sure , but I believe you can get a DC of the desktop ( GetDC(GetDesktopWindow()) ) , and you are able to draw using the HDC functions .
Feel free to ask me if you want something about the HDC functions , but I do not know how to move a drawn object - you have to find the algorithms yourself