EDN Admin
Well-known member
Hi,
I want get HDC of desktop without image of my windows. The image of active windows cant show in HDC. How do I make this???
<div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px <table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap <tbody><tr><td><font style="font-size:11px </font><font style="color:green //...</font><font style="font-size:11px </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) </td></tr><tr><td><font style="color:blue case</font><font style="font-size:11px WM_PAINT: </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) { </td></tr><tr><td><blockquote>PAINTSTRUCT ps; </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>HWND hWndDesktop = GetDesktopWindow(); </blockquote></td></tr><tr><td><blockquote>HDC hdcDesktop = GetDC(hWndDesktop); </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>BeginPaint(hWnd, &ps); </blockquote></td></tr><tr><td><blockquote>BitBlt(ps.hdc, 1, 1, width, height, hdcDesktop, 1, 1, SRCCOPY); </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>EndPain(hWnd, &ps); </blockquote></td></tr><tr><td><blockquote> </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) } </td></tr><tr><td><font style="color:blue break</font><font style="font-size:11px ; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) </td></tr><tr><td><font style="color:green //...</font><font style="font-size:11px </font></td></tr></tbody></table>
But the HDC contains the current windows. I want get hdc without current windows.
<hr class="sig Gustavo de Almeida Neves
View the full article
I want get HDC of desktop without image of my windows. The image of active windows cant show in HDC. How do I make this???
<div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px <table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap <tbody><tr><td><font style="font-size:11px </font><font style="color:green //...</font><font style="font-size:11px </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) </td></tr><tr><td><font style="color:blue case</font><font style="font-size:11px WM_PAINT: </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) { </td></tr><tr><td><blockquote>PAINTSTRUCT ps; </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>HWND hWndDesktop = GetDesktopWindow(); </blockquote></td></tr><tr><td><blockquote>HDC hdcDesktop = GetDC(hWndDesktop); </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>BeginPaint(hWnd, &ps); </blockquote></td></tr><tr><td><blockquote>BitBlt(ps.hdc, 1, 1, width, height, hdcDesktop, 1, 1, SRCCOPY); </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) <blockquote>EndPain(hWnd, &ps); </blockquote></td></tr><tr><td><blockquote> </blockquote></td></tr><tr><td style="background-color:rgb(247, 247, 247) } </td></tr><tr><td><font style="color:blue break</font><font style="font-size:11px ; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247) </td></tr><tr><td><font style="color:green //...</font><font style="font-size:11px </font></td></tr></tbody></table>
But the HDC contains the current windows. I want get hdc without current windows.
<hr class="sig Gustavo de Almeida Neves
View the full article