>>About the best you can do is the active window (includes VFP desktop). Here's how:
>>#define VK_SNAPSHOT 44
>>DECLARE keybd_event IN Win32API;
>> SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo
>>* Active Window
>>= keybd_event(VK_SNAPSHOT, 0, 0, 0)
>>* Windows desktop
>>= keybd_event(VK_SNAPSHOT, 1, 0, 0)
>>hth,
>
>Hi George,
>
>Do you know if there is some way use keybd_event to capture the active form? Using the 'Active Window' alternative above captures the main window of FoxPro.
>
>Thanks for sharing your knowledge...
Hi Klas,
If there is, I haven't found it. There's no reference to such in the SDK, so my reaction is that there isn't a way to do it without going through a number of API calls to get a device context, do a bit block transfer, and build the necessary structures to create a bitmap. Can it be done in pure VFP? Yes, but not as easily as the snippet above.
George
Ubi caritas et amor, deus ibi est