Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could someone try turning this code from VB into VFP.
Message
 
 
To
10/12/2000 07:33:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00451166
Message ID:
00451342
Views:
39
Goran,
&H in VB designates a hexadecimal number. In VFP, hex numbers are designated using 0x.
VB       VFP
&HA1     0xA1
If you have Visual Studio, I recommend installing the API Text Viewer. Unless you have Visual C++ and all of its header files, it is the best place to find the API constants.

HTH.

>>>>============= 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_CLOSE, 0, 0)
>
>---------------------------------------------------------------
>But,I don't know how can I define this coding?
>
>#DEFINE WM_NCLBUTTONDOWN ???
>---------------------------------------------------------------
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform