Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could someone try turning this code from VB into VFP.
Message
 
À
10/12/2000 07:36:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00451166
Message ID:
00451504
Vues:
28
>>>>============= VB Coding =========
>>>>
>>>>Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
>>>>
>>>>Const WM_NCLBUTTONDOWN = &HA1
>>>>Const HTCAPTION = 2
>>>>
>>>>lngReturnValue = SendMessage(Form1.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
>>>>
>>>>============= VFP Coding(?) =========
>>>>Please help me!
>
>Coding provided by Erik Moore;
>#DEFINE WM_CLOSE 0x10
>DECLARE INTEGER FindWindow IN Win32API STRING, STRING
>hWnd = FindWindow(0,"MSDN Library - January 2000")
>=SendMessage(hWnd, WM_NCLBUTTONDOWN, 12, 0)
>
>------------------------------------------------------------
>
>But, I don't know how can I define this code;
>
>VB : Const WM_NCLBUTTONDOWN = &HA1
>VFP : #DEFINE WM_NCLBUTTONDOWN ???????


I think that &H stands for hex code.
Then A1 should be 17 decimal

You could also check winuser.h or windows.h
According to the help it should be defined there.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform