Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Form reference by hwnd number
Message
From
26/05/2003 07:44:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/05/2003 04:46:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00792791
Message ID:
00792804
Views:
19
>Hi
>
>i uses GetActiveWindow(), it return one Hwnd.
>
>Exist a fast command for get Form Object reference of the hwnd ?
>
>Example:
>
>thisForm=SomeCommand(thisForm.Hwnd) is true.
>
>Fabio

GetActiveWindow() doesn't return particular form window handle (unless toplevel) but main hwnd window.
Assuming you've the right hwnd I think you still would need to loop _screen.forms collection to find out the form.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform