Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window Handle
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00733188
Message ID:
00733191
Views:
17
In VFP7 you can use _VFP.hWnd. The forms also have hWnd property.

>Hi
>
>I need to pass in a window handle to a custom DLL, I am using the
>
>DECLARE INTEGER GetActiveWindow IN win32api as GetWinHndl
>
>
>function, if I call this function from the command window or a program the DLL works, if I try to call the GetActiveWindow() from a form I get a different handle number and the DLL returns a window handle error.
>
>I can get the DLL to work at all in a runtime environment it always return a window handle error no matter where I get the window handle from.
>
>The DLL was written by someone else I think they take the window handle and drill down to the main window which is then disabled while talking to the DLL.
>
>Can anyone help?
>
>Thanks
>
>John
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform