我正在尝试从lParam
子类化中获取 rect WM_MOVING
。
我的代码目前是
Public Declare Function CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal dwLength As Long) As Long
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Dim r As RECT
CopyMemory r, lParam, Len(r)
但值r
是如此荒谬(如左:1633872,右:219218039,下:1),我认为我做错了什么。
有人看到我的错误吗?
谢谢!