Solved

Hidden Dialog box

Posted on 1998-11-12
2
153 Views
Last Modified: 2013-11-20
I've seen this done a few times and every time I've been amazed.  Can someone please tell me how to make a visual C++ app that can play around with the screen no matter what program the user is in.  If you've ever seen one of those crazy desktop games, like the cat that follows the mouse cursor around the screen as your working, than you know what I'm talking about.  The program only shows an icon in the taskbar, and that's it!
I know of a cheap way to draw on the desktop by capturing the screen and the playing with it, but that traps the user within the program and won't allow the user to keep working in other applications.
Your help is greatly appreciated.
0
Comment
Question by:SileNcer
2 Comments
 
LVL 2

Accepted Solution

by:
wyy_cq earned 100 total points
ID: 1324617
I think you need register a WndClass whose BRUSH is NULL,
so the window is transparent and will not receive WM_PAINT.

Do not draw on the screen.(recommand)

you can set a timer to get the cursor position .


0
 

Author Comment

by:SileNcer
ID: 1324618
This sounds like the right approach.  Could you please show me an example code of how to register the WndClass and get it to create the window?  Thanks a lot for your help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now