Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with CString Pin
PJ Arends19-Sep-06 9:06
professionalPJ Arends19-Sep-06 9:06 
AnswerRe: problem with CString Pin
David Crow19-Sep-06 4:56
David Crow19-Sep-06 4:56 
AnswerRe: problem with CString Pin
Trollslayer19-Sep-06 5:57
mentorTrollslayer19-Sep-06 5:57 
QuestionRe: problem with CString Pin
David Crow19-Sep-06 7:22
David Crow19-Sep-06 7:22 
Questionhow to get window content , when window is invisible Pin
astabasta19-Sep-06 3:19
astabasta19-Sep-06 3:19 
AnswerRe: how to get window content , when window is invisible Pin
Naveen19-Sep-06 3:26
Naveen19-Sep-06 3:26 
GeneralRe: how to get window content , when window is invisible Pin
astabasta19-Sep-06 4:08
astabasta19-Sep-06 4:08 
GeneralRe: how to get window content , when window is invisible Pin
Naveen19-Sep-06 4:20
Naveen19-Sep-06 4:20 
i tried it here, Its just working fine. see the code below( sorry that its mfc )

ShowWindow( FALSE );<br />
CWindowDC dc(this);<br />
CRect WindRect;<br />
GetWindowRect( WindRect );<br />
m_MemDC.CreateCompatibleDC( &dc );<br />
m_bmp.CreateCompatibleBitmap( &dc, WindRect.Width(), WindRect.Height());<br />
m_MemDC.SelectObject( &m_bmp );<br />
SendMessage( WM_PRINT, (WPARAM)m_MemDC.m_hDC,PRF_CLIENT | PRF_NONCLIENT|PRF_ERASEBKGND);<br />
CWindowDC Desk(0);<br />
Desk.BitBlt( 0,0,WindRect.Width(), WindRect.Height(), & m_MemDC,0,0,SRCCOPY );


The above code paints the window to the desktop.

nave

GeneralRe: how to get window content , when window is invisible Pin
astabasta19-Sep-06 5:07
astabasta19-Sep-06 5:07 
GeneralRe: how to get window content , when window is invisible Pin
astabasta19-Sep-06 10:41
astabasta19-Sep-06 10:41 
GeneralRe: how to get window content , when window is invisible Pin
Naveen19-Sep-06 17:04
Naveen19-Sep-06 17:04 
GeneralRe: how to get window content , when window is invisible Pin
astabasta20-Sep-06 2:18
astabasta20-Sep-06 2:18 
GeneralRe: how to get window content , when window is invisible Pin
Naveen20-Sep-06 2:21
Naveen20-Sep-06 2:21 
GeneralRe: how to get window content , when window is invisible Pin
Naveen31-Jan-07 0:45
Naveen31-Jan-07 0:45 
AnswerRe: how to get window content , when window is invisible Pin
Jun Du19-Sep-06 3:45
Jun Du19-Sep-06 3:45 
GeneralRe: how to get window content , when window is invisible Pin
astabasta19-Sep-06 4:11
astabasta19-Sep-06 4:11 
GeneralRe: how to get window content , when window is invisible Pin
Jun Du19-Sep-06 5:00
Jun Du19-Sep-06 5:00 
QuestionWriting Code for 64-bit windows Pin
vikas amin19-Sep-06 3:17
vikas amin19-Sep-06 3:17 
AnswerRe: Writing Code for 64-bit windows Pin
Dimitris Vikeloudas20-Sep-06 23:17
Dimitris Vikeloudas20-Sep-06 23:17 
QuestionInline editing: How explorer does it? Pin
Dimitris Vikeloudas19-Sep-06 3:02
Dimitris Vikeloudas19-Sep-06 3:02 
QuestionDrawing over a window - directdraw overlay? Pin
Andrew Altham19-Sep-06 2:50
Andrew Altham19-Sep-06 2:50 
Questionatlres.h missing Pin
neha.agarwal2719-Sep-06 2:24
neha.agarwal2719-Sep-06 2:24 
AnswerRe: atlres.h missing Pin
Hamid_RT19-Sep-06 2:42
Hamid_RT19-Sep-06 2:42 
QuestionRe: atlres.h missing Pin
David Crow19-Sep-06 2:46
David Crow19-Sep-06 2:46 
Questionadding my exe to the startup in the registry Pin
Kiran Pinjala19-Sep-06 2:22
Kiran Pinjala19-Sep-06 2:22 

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.