Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MS Word Pin
Amit Dey26-Mar-03 12:52
Amit Dey26-Mar-03 12:52 
GeneralRe: MS Word Pin
Trollslayer26-Mar-03 13:14
mentorTrollslayer26-Mar-03 13:14 
QuestionHow to GetWindowDC Pin
ray_li26-Mar-03 10:02
ray_li26-Mar-03 10:02 
AnswerRe: How to GetWindowDC Pin
Dave Bryant26-Mar-03 10:08
Dave Bryant26-Mar-03 10:08 
GeneralRe: How to GetWindowDC Pin
ray_li26-Mar-03 10:45
ray_li26-Mar-03 10:45 
GeneralRe: How to GetWindowDC Pin
Dave Bryant26-Mar-03 10:49
Dave Bryant26-Mar-03 10:49 
GeneralRe: How to GetWindowDC Pin
ray_li27-Mar-03 9:51
ray_li27-Mar-03 9:51 
GeneralRe: How to GetWindowDC Pin
Dave Bryant27-Mar-03 9:56
Dave Bryant27-Mar-03 9:56 
ray_li wrote:
Can I get the image of any a window's DC that I want

I'm assuming here that you mean what is displayed on the window.

As far as i know this is impossible, because Windows does not store internally the contents of any window that is not currently visible - when they become visible again, it sends a WM_PAINT message to tell it to redraw itself. This is why sometimes if a program is busy and you drag another window over it, it doesn't redraw.

If the window is actually visible, then you might be able to grab the dc (or alternatively grab a DC for the entire desktop), and copy it, but having never tried this myself, i'm not sure if it would work (my gut says yes though, because that is probably how screen capture works).

Dave
http://www.cloudsofheaven.org
GeneralWM_COMMAND Pin
Brian Tietz26-Mar-03 9:49
Brian Tietz26-Mar-03 9:49 
GeneralRe: WM_COMMAND Pin
Ravi Bhavnani26-Mar-03 10:04
professionalRavi Bhavnani26-Mar-03 10:04 
GeneralRe: WM_COMMAND Pin
Brian Tietz26-Mar-03 10:19
Brian Tietz26-Mar-03 10:19 
GeneralRe: WM_COMMAND Pin
Ravi Bhavnani26-Mar-03 10:32
professionalRavi Bhavnani26-Mar-03 10:32 
GeneralRe: WM_COMMAND Pin
Brian Tietz26-Mar-03 10:40
Brian Tietz26-Mar-03 10:40 
GeneralSetWindowText not setting it Pin
ns26-Mar-03 9:01
ns26-Mar-03 9:01 
GeneralRe: SetWindowText not setting it Pin
Ravi Bhavnani26-Mar-03 9:13
professionalRavi Bhavnani26-Mar-03 9:13 
GeneralRe: SetWindowText not setting it Pin
ns26-Mar-03 9:19
ns26-Mar-03 9:19 
GeneralRe: SetWindowText not setting it Pin
ns26-Mar-03 9:22
ns26-Mar-03 9:22 
GeneralRe: SetWindowText not setting it Pin
Ravi Bhavnani26-Mar-03 9:28
professionalRavi Bhavnani26-Mar-03 9:28 
Generalnope Pin
ns26-Mar-03 9:32
ns26-Mar-03 9:32 
Generalis this a clue? Pin
ns26-Mar-03 9:25
ns26-Mar-03 9:25 
GeneralRe: is this a clue? Pin
Ravi Bhavnani26-Mar-03 9:31
professionalRavi Bhavnani26-Mar-03 9:31 
GeneralRe: is this a clue? Pin
ns26-Mar-03 9:42
ns26-Mar-03 9:42 
GeneralRe: is this a clue? Pin
Tim Smith26-Mar-03 9:53
Tim Smith26-Mar-03 9:53 
GeneralRe: is this a clue? Pin
Ravi Bhavnani26-Mar-03 10:00
professionalRavi Bhavnani26-Mar-03 10:00 
GeneralRe: is this a clue? Pin
ns27-Mar-03 1:51
ns27-Mar-03 1:51 

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.