Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fun with VFP 6 and Windows 2000.
Message
From
06/06/2000 14:31:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Fun with VFP 6 and Windows 2000.
Miscellaneous
Thread ID:
00377423
Message ID:
00377423
Views:
71
Hey all.

Mike Stewart at MS came up with some fun, possibly useful, UI code that runs under Windows 2000 and sent it to me. I passed it along to George Tasker who made sure that it worked right using Foxtools.

Here is the result. Try it! (It REQUIRES Windows 2000)
DEFINE CLASS cfrmshadow AS form
   ShowWindow = 2
   DoCreate = .T.
   Caption = "Form2"
   HWnd = 0
   PROCEDURE Init
      IF ! 'FOXTOOLS' $ SET('LIBRARY')
         SET LIBRARY TO FOXTOOLS.FLL
      ENDIF
      DECLARE SetWindowLong In Win32Api Integer, Integer, Integer
      DECLARE SetLayeredWindowAttributes In Win32Api Integer, String, Integer, Integer
      DECLARE GetWindowLong In Win32Api Integer, Integer
      ThisForm.HWnd = _WhTohWnd(_WFindTitl(ThisForm.Caption))
      SetWindowLong(ThisForm.HWnd, -20, 0x00080000)
      SetLayeredWindowAttributes(ThisForm.HWnd, 0, 120, 2)
   ENDPROC
ENDDEFINE
Run this code and then .....

oForm=CREATEOBJECT(cfrmshadow)

Let me know what you think!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Next
Reply
Map
View

Click here to load this message in the networking platform