Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString trouble Pin
Michael Dunn2-Aug-07 8:18
sitebuilderMichael Dunn2-Aug-07 8:18 
QuestionHow to replace a CDC of another CWnd Pin
FlyingBear1-Aug-07 22:50
FlyingBear1-Aug-07 22:50 
QuestionRe: How to replace a CDC of another CWnd Pin
Hamid_RT1-Aug-07 22:56
Hamid_RT1-Aug-07 22:56 
AnswerRe: How to replace a CDC of another CWnd Pin
FlyingBear1-Aug-07 23:17
FlyingBear1-Aug-07 23:17 
AnswerRe: How to replace a CDC of another CWnd Pin
FlyingBear1-Aug-07 23:22
FlyingBear1-Aug-07 23:22 
AnswerRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer1-Aug-07 23:52
Iain Clarke, Warrior Programmer1-Aug-07 23:52 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 0:41
FlyingBear2-Aug-07 0:41 
GeneralRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer2-Aug-07 1:16
Iain Clarke, Warrior Programmer2-Aug-07 1:16 
Yes, this is a screen capture.

Unfortunately, unless the window is visible, window's won;t actually bother sending a WM_PAINT to it, so it won't bother to redraw (this may not be the truth under Vista).

Which is what the WM_PRINT message is for. But as you said, it does require the "victim" app to play nicely. You could try replacing the GetDesktopWindow call in my code with hWndFromOtherApp, and use GetClientRect (hWndFromOtherApp), but I'm not sure how nicely it will work.

Its worth a try though, as it won't take much effort to test!

Good luck,

Iain.



GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 2:30
FlyingBear2-Aug-07 2:30 
GeneralRe: How to replace a CDC of another CWnd Pin
Hamid_RT2-Aug-07 2:47
Hamid_RT2-Aug-07 2:47 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 3:57
FlyingBear2-Aug-07 3:57 
GeneralRe: How to replace a CDC of another CWnd Pin
Hamid_RT2-Aug-07 5:09
Hamid_RT2-Aug-07 5:09 
AnswerRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer1-Aug-07 23:23
Iain Clarke, Warrior Programmer1-Aug-07 23:23 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 0:25
FlyingBear2-Aug-07 0:25 
QuestionRe: How to replace a CDC of another CWnd Pin
Mark Salsbery2-Aug-07 9:27
Mark Salsbery2-Aug-07 9:27 
AnswerRe: How to replace a CDC of another CWnd Pin
Michael Dunn2-Aug-07 8:18
sitebuilderMichael Dunn2-Aug-07 8:18 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 8:53
FlyingBear2-Aug-07 8:53 
AnswerRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 19:21
FlyingBear2-Aug-07 19:21 
QuestionEnable C++ Exceptions Pin
Tal S.1-Aug-07 22:37
Tal S.1-Aug-07 22:37 
AnswerRe: Enable C++ Exceptions Pin
Russell'2-Aug-07 2:35
Russell'2-Aug-07 2:35 
QuestionRunning 10 threads at a time Pin
neha.agarwal271-Aug-07 22:22
neha.agarwal271-Aug-07 22:22 
AnswerRe: Running 10 threads at a time Pin
Iain Clarke, Warrior Programmer1-Aug-07 22:48
Iain Clarke, Warrior Programmer1-Aug-07 22:48 
AnswerRe: Running 10 threads at a time Pin
Iain Clarke, Warrior Programmer1-Aug-07 22:52
Iain Clarke, Warrior Programmer1-Aug-07 22:52 
AnswerRe: Running 10 threads at a time Pin
Russell'1-Aug-07 22:57
Russell'1-Aug-07 22:57 
GeneralRe: Running 10 threads at a time Pin
neha.agarwal272-Aug-07 2:09
neha.agarwal272-Aug-07 2:09 

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.