Click to See Complete Forum and Search --> : Please help...Very urgent


udipr
July 4th, 2001, 08:24 AM
Hello.

I want to get the content of window with scrollbar on it.
I wrote that code:

private Sub GetWindowContent(byval hWin as Long)
Dim hWinDC as Long
Call GetWindowRect(hWin, hRect)
hWinDC = GetDC(hWin)
Call BitBlt(pbDest.hdc, 0, 0, (hRect.Right - hRect.Left), (hRect.Bottom - hRect.Top), hWinDC, 0, 0, vbSrcCopy)
End Sub



It get the window content ant show it in the pictureBox (pbDest) , But only the area that we see. It wont get the scroll area !!!
How can I get the whole window, including the scroll area ???

Thanks for any help.