Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SendMessage parameters
Message
 
To
02/07/2001 17:59:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00526088
Message ID:
00526165
Views:
18
Hi!
SendMessage parameters are the same both in Win and WinNT:
LRESULT SendMessage(
HWND hWnd, // handle to destination window
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
Are you sure that problem in SendMessage()? Have you checked return value?
Your param1 = 274 seems to be WM_SYSCOMMAND message, but I can't find system command with -4078 code. SC_MOVE = -4080.

>I have in my base form class the following code in MouseDown() method:
>
>
>IF nButton = 1 AND oApp.EasyMove
>*!*	Obtin handle-ul ferestrei pe care am facut click, dar numai in cazul
>*!*	in care utilizatorul si-a activat aceasta facilitate.
>	DECLARE INTEGER GetFocus IN WIN32API
>	lnHandle = GetFocus()
>	param1 = 274
>	param2 = -4078
>	DECLARE INTEGER ReleaseCapture IN WIN32API
>	DECLARE INTEGER SendMessage IN WIN32API INTEGER, INTEGER, INTEGER, INTEGER
>	bb=ReleaseCapture()
>	bb=SendMessage(lnHandle, param1, param2,0)
>ENDIF
>
>
>This code enables an "easy-move" feature for forms. If oApp.EasyMove is .T., then the form can be moved by clicking anywhere on the form's body.
>
>I have one big problem whith this. It doesn't work under WinNT family. Can anyone enlighten what are the correct parameters for WinNT? Or, at least, where to search for info?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform