Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindWindow
Message
 
 
À
10/07/2001 12:04:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00528695
Message ID:
00528708
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform