Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get messages from a non std keypad with joystick in the middle Pin
dli_9802-Feb-06 10:39
dli_9802-Feb-06 10:39 
AnswerRe: How to get messages from a non std keypad with joystick in the middle Pin
EXTEIDE2-Feb-06 14:55
EXTEIDE2-Feb-06 14:55 
Questionstudent Pin
first09022-Feb-06 8:42
first09022-Feb-06 8:42 
AnswerRe: student Pin
David Crow2-Feb-06 10:14
David Crow2-Feb-06 10:14 
AnswerRe: student Pin
normanS2-Feb-06 19:25
normanS2-Feb-06 19:25 
GeneralRe: student Pin
first09023-Feb-06 3:45
first09023-Feb-06 3:45 
GeneralRe: student Pin
normanS5-Feb-06 18:16
normanS5-Feb-06 18:16 
QuestionOverlay Graphics on External Application Pin
yeela2-Feb-06 8:41
yeela2-Feb-06 8:41 
I want to write an application that overlays information on the window(s) of another external application. Basicly I want to draw information on that applications window. Does anybody have a clue on how to do this?

I can think of two strategies:

1. Write the information on a transparent window an make sure that the windows stays over the application I want to modify through constantly monitoring the window hierarchy.

2. Make som kind of hook in the external program and capture paint events. After the original paint is done I have some own code that writes what I want over the GUI.

I think I would prefer the first strategy if it is possible, since it is less intrusive and eaisier to adopt to different kinds of applications. But I don't know if it is possible to do a window that is completly transparent to mouse and keyboard events. I wouldn't want my application to steal the focus from the application I modify. The modification should be visual only. Another problem is that I guess it might be hard to make the Z order and positioning to be in perfect sync all the time (although short missalignments is acceptable).

Does anyone have an clue of which API calls to use to make such a system? Does anyone have any sample code that does similar things?
AnswerRe: Overlay Graphics on External Application Pin
EXTEIDE2-Feb-06 14:37
EXTEIDE2-Feb-06 14:37 
AnswerRe: Overlay Graphics on External Application Pin
Ryan Binns2-Feb-06 17:30
Ryan Binns2-Feb-06 17:30 
QuestionWindows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 8:17
Xiangyang Liu 刘向阳2-Feb-06 8:17 
AnswerRe: Windows Message Question Pin
Maximilien2-Feb-06 8:38
Maximilien2-Feb-06 8:38 
GeneralRe: Windows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 8:47
Xiangyang Liu 刘向阳2-Feb-06 8:47 
GeneralRe: Windows Message Question Pin
Maximilien2-Feb-06 8:49
Maximilien2-Feb-06 8:49 
GeneralRe: Windows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 9:07
Xiangyang Liu 刘向阳2-Feb-06 9:07 
GeneralRe: Windows Message Question Pin
David Crow2-Feb-06 10:16
David Crow2-Feb-06 10:16 
AnswerRe: Windows Message Question Pin
Michael Dunn2-Feb-06 8:51
sitebuilderMichael Dunn2-Feb-06 8:51 
GeneralRe: Windows Message Question Pin
Maximilien2-Feb-06 8:58
Maximilien2-Feb-06 8:58 
GeneralRe: Windows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 9:15
Xiangyang Liu 刘向阳2-Feb-06 9:15 
AnswerRe: Windows Message Question Pin
Iain Clarke, Warrior Programmer2-Feb-06 10:46
Iain Clarke, Warrior Programmer2-Feb-06 10:46 
QuestionString in Console.Write Pin
JGonzalezGUS2-Feb-06 8:16
JGonzalezGUS2-Feb-06 8:16 
AnswerRe: String in Console.Write Pin
Michael Dunn2-Feb-06 8:53
sitebuilderMichael Dunn2-Feb-06 8:53 
Questiontext not appending at the end of file Pin
zahid_ash2-Feb-06 7:20
zahid_ash2-Feb-06 7:20 
AnswerRe: text not appending at the end of file Pin
Michael Dunn2-Feb-06 7:37
sitebuilderMichael Dunn2-Feb-06 7:37 
GeneralRe: text not appending at the end of file Pin
zahid_ash2-Feb-06 7:41
zahid_ash2-Feb-06 7:41 

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.