c'est dans Source\Rtl\Win\Messages.pas
appremment il y a un param WindowPos (celui qui t'intéresse donc) de type PWindowPos, donc un pointeur.
et dans Source\Rtl\Win\Windows.pas on trouve:
Code :
{ WM_WINDOWPOSCHANGINGCHANGED struct pointed to by lParam }
PWindowPos = ^TWindowPos;
{$EXTERNALSYM tagWINDOWPOS}
tagWINDOWPOS = packed record
hwnd: HWND;
hwndInsertAfter: HWND;
x: Integer;
y: Integer;
cx: Integer;
cy: Integer;
flags: UINT;
end;
TWindowPos = tagWINDOWPOS;
{$EXTERNALSYM WINDOWPOS}
WINDOWPOS = tagWINDOWPOS;
donc, supposons que ton message soit tans la variable Msg1, tu fais:
TWMWindowPosMsg(Msg1).WindowPos^.x par ex pour accéder au x.
Je crois que ça doit marcher, ou alors c'est pas trop loin de ça.