>I'm trying to develop a PrintScreen utility. I've been able to capture the correct screen, OK using the PrintScreen utilities from the Files section.
>
>My problem is that the screen is displayed on a form that contains an editbox, an image control and 2 buttons. However, when I try to print that form,
>I get the VFP screen as well. I used FindWindow to return the handle of the form, but the handle comes back as 0. I assume this is due to VFP's lack of window handles for every screen. Is there any way to get a window handle for this "child" window?
>
>TIA
>Mike
Foxtools provides you with a couple of functions to do this.
_WFindTitl - find child windows based on title; returns a VFP handle
_WHtoHWnd - converts VFP handle to Windows window handle to use in API functions
For more information on these functions, check out George Tasker's Extended Foxtools Help file available in the Download section.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao