Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a bug?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00498021
Message ID:
00498097
Vues:
14
>>I was looking for that reference and read right over it without seeing it. I'm getting too old or it's time for a new prescription (and it's not that I'm too old). ;-)
>
>I don't even see that now!.

Now I don't feel so bad. < he says as he contemplates the age thing again >< gd&rvf >

WVISIBLE Help Excerpt explaining the WindowName parameter
You can also include the empty string in WindowName to specify the main Visual FoxPro window.

>
>There is an explanation, however, and I don't think it relates to necessarily to the VFP main window.
>
>As you probably, Larry, VFP internally manages it's windows via what's referred to as a whandle. It's like a window handle. The foxtools library, in fact, includes a function (_WhTohWnd()) to translate these values.
>
>Now when you pass a window name, "Command" for example, to WVISIBLE(), if the command window is visible, you get .T. It also has a whandle that can be returned via _WFindTitl().
>
>Here's the deal. _WFindTitl() returns a whandle that is different from the main VFP window's when a "" is passed.

Doing some digging with Spy++ (what a great tool!!!). The _WFindTitl("") returns a reference to some invisible window created by VFP but operating outside of the IDE environment. The window isn't owned by anything and it is not a child of anything but it is associated with one of VFP's threads. Maybe its asscoaited with a cleanup/garbage collection thread or something.
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