Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwindows program in background and simulate keyboard Pin
Ylis21-Feb-04 5:41
Ylis21-Feb-04 5:41 
GeneralRe: windows program in background and simulate keyboard Pin
Prakash Nadar21-Feb-04 5:46
Prakash Nadar21-Feb-04 5:46 
GeneralRe: windows program in background and simulate keyboard Pin
Ylis21-Feb-04 6:43
Ylis21-Feb-04 6:43 
GeneralRe: windows program in background and simulate keyboard Pin
Nirav Doshi21-Feb-04 12:23
Nirav Doshi21-Feb-04 12:23 
GeneralIDirectSound8::SetCooperativeLevel Pin
Alexander M.,21-Feb-04 5:11
Alexander M.,21-Feb-04 5:11 
GeneralRe: IDirectSound8::SetCooperativeLevel Pin
Prakash Nadar21-Feb-04 5:42
Prakash Nadar21-Feb-04 5:42 
GeneralAnother problem. Pin
Alexander M.,21-Feb-04 7:30
Alexander M.,21-Feb-04 7:30 
GeneralTracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 4:17
Tim Schuhmacher21-Feb-04 4:17 
I am studying for software engineer, but I am not (yet) very skilled. A relative asked me if I could help him. He has an eyeproblem and has trouble locating the mousecursor in Windows. He works with Autocad where the position of the mousecurosr is shown by a big cross. So a horizontal line covering the whole width of the monitor at the y position of the cursor and a vertical line covering the whole height of the monitor at the x position of the mousecursor. So where the 2 lines intersect there is the mousecursor.

I want to make a program that runs on top of every other program in windows and shows that cross. I searched 'The code project' and found some interresting articles. Here http://www.codeproject.com/bitmap/DeskShoot.asp abhinaba describes a way to shoot hole at your windows desktop and all the running application. The trouble with this is that 1 time a copy of the desktop is taken and the holes are painted on that copy and shown on top of everything else, so the programs that are running can be accessed until you close the shooting program.

My program should show the cross and the mouseposition on top of everything, but other programs must be able to get focus.

I already tried something with getDC. I am able to get a copy of the desktop, can draw on ii and also show it, but than the problem is that when I get the desktop for the second time the old cross pointing at the old position of the mousecursor I also visible. So eventually the screen will be filled with multiple crosses.

Is it actually possible to draw dynamically over the whole desktop with keeping the functionality to acces all the running programs? Am I looking in the right direction and can somebody help me further?

Oh by the way using a bigger mousecursor is not an option. Or maybe somebody knows a program that give this functionality?

English ins't my native language, so sorry for that Smile | :)
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Prakash Nadar21-Feb-04 5:52
Prakash Nadar21-Feb-04 5:52 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 5:59
Tim Schuhmacher21-Feb-04 5:59 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Prakash Nadar21-Feb-04 6:12
Prakash Nadar21-Feb-04 6:12 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 11:51
Tim Schuhmacher21-Feb-04 11:51 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Shog921-Feb-04 6:20
sitebuilderShog921-Feb-04 6:20 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 11:46
Tim Schuhmacher21-Feb-04 11:46 
GeneralLooking for some code Pin
#realJSOP21-Feb-04 3:42
professional#realJSOP21-Feb-04 3:42 
GeneralRe: Looking for some code Pin
Shog921-Feb-04 5:57
sitebuilderShog921-Feb-04 5:57 
GeneralRe: Looking for some code Pin
Jörgen Sigvardsson21-Feb-04 11:57
Jörgen Sigvardsson21-Feb-04 11:57 
QuestionHow can I see member variables corresponding a selected control in VS 2003 ? Pin
Gem21-Feb-04 2:38
Gem21-Feb-04 2:38 
AnswerRe: How can I see member variables corresponding a selected control in VS 2003 ? Pin
Shog921-Feb-04 5:53
sitebuilderShog921-Feb-04 5:53 
AnswerRe: How can I see member variables corresponding a selected control in VS 2003 ? Pin
Prakash Nadar21-Feb-04 5:55
Prakash Nadar21-Feb-04 5:55 
GeneralRe: How can I see member variables corresponding a selected control in VS 2003 ? Pin
Gem22-Feb-04 3:10
Gem22-Feb-04 3:10 
Generalcreating and displaying a listbox dynamically (on the fly) Pin
brainznbrawn@yahoo.com21-Feb-04 2:36
brainznbrawn@yahoo.com21-Feb-04 2:36 
GeneralRe: creating and displaying a listbox dynamically (on the fly) Pin
Shog921-Feb-04 6:04
sitebuilderShog921-Feb-04 6:04 
QuestiontoolBar-> function --> create my own message send to all dialog boxes ? Pin
BrutalDeath021-Feb-04 1:24
sussBrutalDeath021-Feb-04 1:24 
AnswerRe: toolBar-> function --> create my own message send to all dialog boxes ? Pin
Shog921-Feb-04 6:08
sitebuilderShog921-Feb-04 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.