I want to capture the active window by using its handle:
hnd = GetDC(GetActiveWindow)
and then copying to a picturebox:
BitBlt Picture1.hDC, 0, 0, width, height, hnd, 0, 0, SRCCOPY
but I don't know how to get the parameters width and height to adjust the size of Picture1.




Reply With Quote