Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could someone try turning this code from VB into VFP.
Message
 
To
09/12/2000 11:37:52
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00451166
Message ID:
00451612
Views:
23
Hi,

You mailed me the understanding message today.
If i understand coorectly the problem is now that you don't know how to convert the constant &HA1.
&H stands for Hex. So A1 hex = 161 decimal.
But you can also use the VFP way to define hex numbers. In VFP you can define hex numbers with 0x (As Larry said)
So &HA1 (VB) = 0xA1 (VFP)
VFP define:
#Define WM_NCLBUTTONDOWN 0xA1
HTH



Dear Ko Wisse ,
I'm Kang mj.
Thank you for my question in the website of universalthread
But, I have some question.
Please Teach me!

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



Erik Moore's coding : #DEFINE WM_CLOSE 0x10
==> My Coding : #DEFINE WM_NCLBUTTONDOWN ???????

But, I don't know how can I define this code by VFP Coding.

VB : Const WM_NCLBUTTONDOWN = &HA1
==> VFP : #DEFINE WM_NCLBUTTONDOWN ???????
Previous
Reply
Map
View

Click here to load this message in the networking platform