Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding screen row/col in a grid
Message
From
27/07/2000 19:46:08
 
 
To
27/07/2000 17:30:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393227
Message ID:
00397945
Views:
8
>This is code in Visual Basic, but with the litle hack about POINTAPI structure, you should can use this code. How to simulate structures in Visual FoxPro, I found at this forum before about a year and a half. Author of documentation and code was Christof Lange. If You can't find this source, let me know, I can e-mail to You this source.
>
>
>'Function Call declaration for GetCursorPos
>Private Declare Function GetCursorPos Lib "user32" _
> (lpPoint As POINTAPI) _
>As Long
>
>'Structure definitions for POINTAPI
>Private Type POINTAPI
> X As Long
> Y As Long
>End Type
>
>If You have installed some version of Microsoft MSDN, You will be able to find more about this function.
>
>I Use this often in Visual Basic, but I never try it in Visual FoxPro.
>I Hope that this will be helpful.

Using CLSHEAP's UDFs:

DECLARE GetCursorPos IN USER32 STRING @ lpPoint
lpPoint = REPL(CHR(0),8)
=GetCursorPos(@lpPoint)
SET PROCEDURE TO CLSHEAP ADDITIVE
nX = DWORDToNum(lpPoint)
nY = DWORDToNum(RIGHT(lpPoint,4))
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform