Solved

Hidden Dialog box

Posted on 1998-11-12
2
158 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 117
windows 10 how make picture as desktop background 2 62
post4 challenge 28 99
Sed question 2 83
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 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

10 Experts available now in Live!

Get 1:1 Help Now