>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)
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