Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the easiest way to get Window handle value?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00051377
Message ID:
00053073
Views:
43
>Hi Paul!
>
>Thank, you have answered all my questions! I will talk about these resilts
>later
>
>>I run your test.prg. But I don't understand what you don't understand.
>>Probably I'm missing something. I couldn't find the 2 equal handles.

Vladimir,

Here's what's happening. There are actually 3 window handles generated. The first is the frame surrounding the parent window with with the caption "Form1". The second is the area where the 3 command buttons are, and the third is the child form.

When you click on the "Parent Handle" command button, the value returned is that of the frame. When you click on the "Child Handle" command button, the value returned is not that of the child window, but the area of the parent with the command buttons. The following are the results returned from SPY.EXE (hex values, followed by the form's title bar caption).

4F8:Form1 - This is the value returned by the Parent Handle command button
4FC - This is the value returned by the Child Handle command button.
4A0:Child

Hope that this answers your questions.

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform