Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindow
Message
 
 
To
10/07/2001 12:04:47
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00528695
Message ID:
00528708
Views:
16
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform