Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Menu shortcuts Pin
ez_way@charter.net23-Nov-03 22:13
sussez_way@charter.net23-Nov-03 22:13 
GeneralCapture Hidden Window's contents into an HBITMAP/HDC Pin
ohadp23-Nov-03 3:39
ohadp23-Nov-03 3:39 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
Peter Molnar23-Nov-03 9:06
Peter Molnar23-Nov-03 9:06 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
ohadp23-Nov-03 20:31
ohadp23-Nov-03 20:31 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
ohadp23-Nov-03 20:32
ohadp23-Nov-03 20:32 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
Peter Molnar24-Nov-03 2:06
Peter Molnar24-Nov-03 2:06 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
ohadp24-Nov-03 2:43
ohadp24-Nov-03 2:43 
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
Peter Molnar24-Nov-03 3:37
Peter Molnar24-Nov-03 3:37 
There is no misunderstanding.

As a matter of fact, the referred code captures (see zipped code MyClass::DoPrntScreen function):

1.the screen, (The handle of the whole screen is NULL, GetDC gives HDC of the screen)
2.any other window, or (uses GetForegroundWindow for getting handle and GetWindowDC for HDC of the whole window)
3.the client area of any other window (use GetForegroundWindow for handle, and GetDC for HDC of client area of any window)

What it captures, depends upon what window handle you specify.
Again, every window, even a hidden and/or child window has a window handle.
Your task is to find your child window's handle (see EnumChildWindows) and do the some code as in the referred code.

Sorry, if I made the appearance that the referred code does your job without any modification.
However, it is a very good example and starting point for what you will have to do.



Peter Molnar
GeneralRe: Capture Hidden Window's contents into an HBITMAP/HDC Pin
ohadp24-Nov-03 3:53
ohadp24-Nov-03 3:53 
QuestionHow do you enable column drag-drop in a CListView? Pin
Abin23-Nov-03 2:57
Abin23-Nov-03 2:57 
AnswerRe: How do you enable column drag-drop in a CListView? Pin
Michael Dunn23-Nov-03 8:48
sitebuilderMichael Dunn23-Nov-03 8:48 
GeneralRe: How do you enable column drag-drop in a CListView? Pin
Abin23-Nov-03 13:45
Abin23-Nov-03 13:45 
GeneralTask pane Pin
programmi.demo23-Nov-03 2:55
programmi.demo23-Nov-03 2:55 
GeneralRe: Task pane Pin
BaldwinMartin23-Nov-03 16:47
BaldwinMartin23-Nov-03 16:47 
GeneralRe: Task pane Pin
programmi.demo23-Nov-03 23:56
programmi.demo23-Nov-03 23:56 
GeneralRe: Task pane Pin
BaldwinMartin24-Nov-03 0:49
BaldwinMartin24-Nov-03 0:49 
GeneralRe: Task pane Pin
G Haranadh26-Oct-10 21:40
G Haranadh26-Oct-10 21:40 
GeneralDisappearing images Pin
Killen23-Nov-03 2:34
Killen23-Nov-03 2:34 
GeneralRe: Disappearing images Pin
Ivor S. Sargoytchev23-Nov-03 5:40
Ivor S. Sargoytchev23-Nov-03 5:40 
GeneralRe: Disappearing images Pin
Killen23-Nov-03 8:24
Killen23-Nov-03 8:24 
GeneralRe: Disappearing images Pin
Terry O'Nolley23-Nov-03 5:47
Terry O'Nolley23-Nov-03 5:47 
GeneralRe: Disappearing images Pin
bnn3nasdfasdfa23-Nov-03 12:24
bnn3nasdfasdfa23-Nov-03 12:24 
GeneralRe: Disappearing images Pin
Killen23-Nov-03 21:38
Killen23-Nov-03 21:38 
GeneralVisual C++ 6.0 and backup files Pin
Chris Hills23-Nov-03 1:44
Chris Hills23-Nov-03 1:44 
GeneralRe: Visual C++ 6.0 and backup files Pin
Stefan Pedersen23-Nov-03 5:31
Stefan Pedersen23-Nov-03 5:31 

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.