Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxuse.dbf
Message
De
30/11/2000 02:14:58
 
 
À
28/11/2000 07:24:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00446078
Message ID:
00447220
Vues:
9
>On my Win ME & Win2000 boxes, my app doesn't maximize as coded. Unless I set the _screen.height and _screen.width based upon the sysmetrics, the form is about 640 x 480. When I use the maximize button and close the app, it goes back to to the 640, etc. Any ideas?
>
>I'd also like to use a Windows API call to determine if the taskbar is visible and it's height. I found one that requires a parameter of type RECT. Is the any way to simulate this in VFP? I looked at Christof's Structure class, but didn't see what I thought I'd need.
>

A RECT structure is nothing more than 4 4-byte integers concatenated together, which are handled in a 16 byte string by VFP. If you use ClsHeap, pass the lpRECT as a STRING @, initialize a memvar to a 16 byte string, and pass that by reference. The only thing in ClsHeap actually used is the UDF that converts a 4 byte string into a VFP numeric memvar. An imaginary example:
SET PROC TO ClsHeap ADDITIVE
cRect = REPL(CHR(0),16)
DECLARE GetSomeRect IN JRandomDLL INTEGER dwRectNum, STRING @ lpRECT
=GetSomeRect(1,@cRect)  && pass the string to hold the RECT by ref
left = DWORDToNum(SUBST(cRect,1,4))
right = DWORDToNum(SUBST(cRect,5,4))
top = DWORDToNum(SUBST(cRect,9,4))
bottom = DWORDToNum(SUBST(cRect,13,4))
>TIA
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform