Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code translation in VFP
Message
From
03/04/2002 07:02:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/04/2002 05:28:35
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00640260
Message ID:
00640269
Views:
12
>this VB code detect internet explorer and close it.
>please translate it from VB to VFP.
>thank you
>
>
I think this exists translated in download or api section. However do you need it to close ie windows :
DECLARE integer FindWindow IN WIN32API ;
  string @ lpClassName, string @ lpWindowName
DECLARE INTEGER SendMessage IN Win32API INTEGER HWND, ;
      INTEGER Msg, Short WParam, INTEGER LPARAM
#DEFINE WM_CLOSE 16

m.Hwnd = FindWindow('IEFrame',0)
DO WHILE m.hwnd # 0
  SendMessage(m.HWND,WM_CLOSE,0,0)
  m.Hwnd = FindWindow('IEFrame',0)
enddo
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform