Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SendMessage parameters
Message
 
À
02/07/2001 17:59:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00526088
Message ID:
00526165
Vues:
19
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform