Can someone help me to convert the answer given here so that it is not the desktop, but a region of an applications window that is captured:
I think the following definition is suitable:
GrabAppRect(intLeft, intTop, intWidth, intHeight : integer; Fname: string; awHandle: HWND)
intLeft and intTop is the top left pixel position to start the grab from
intWidth and Height are the required capture widths and heights
Fname is the full path and filename of the bmp file to be output.
and awHandle is the window handle of the application I am trying to capture parts of.
I will be wrapping this in a DLL ultimately, which I am OK with doing (I think!)