Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN.hWnd, FindWindow() and MAINHWND()
Message
From
31/07/2001 05:40:34
 
 
To
31/07/2001 00:53:19
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00537608
Message ID:
00537658
Views:
54
Hi!

VFP 7.0 main screen now consist of 2 windows, _VFP and _SCREEN. What you're getting is probably a handle to _SCREEN when you need handle to _VFP (or vise versa?).

>_SCREEN.hWnd is a new VFP 7.0 property that gets the "Window Handle" of the Main VFP Window and seems to work (I'm still using VFP 7.0 Beta 2).
>
>Prior to VFP 7.0, one could use the Windows FindWindow() function or the FOXTOOLS MAINHWND() function to get the VFP Main Window Handle; these also worked as expected, prior to 7.0.
>
>However, in 7.0, FindWindow() and MAINHWND() do not appear to return the Main VFP Window Handle; instead, they return one of the immediate "invisible" child windows. It seems now only _SCREEN.hWnd works properly in 7.0. Consequently, I/we are now having to do a version check when working with these functions.
>
>Normally I wouldn't care but I'm creating some "stuff" that might be used by 6.0 and 7.0 developers.
>
>Anybody else notice the same thing, or is it (maybe) only a Beta 2 problem ?
>
>Can't be a bug on my part ...
>
>:)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform