求助!关于WM_MOVE消息,如何从WM_MOVE消息中提取新窗口的坐标位置?
各位高手好!我看到了MSDN中对于WM_MOVE消息的描述:
lParam:
Specifies the x and y coordinates of the upper-left corner of the client area of the window. The low-order word contains the x-coordinate while the high-order word contains the y coordinate.
----------
但是我使用下述代码却无法提取这个参数中的新窗口的位置坐标
local @movedX ;窗口移动之后的x坐标
local @movedY ;窗口移动之后的y坐标
................
.elseif eax == WM_MOVE
mov ebx, lParam
and ebx, 0000ffffh ;低16位中是x坐标
mov @movedX, ebx
mov ebx, lParam
and ebx, 0ffff0000h ;高16位中是y坐标
mov ecx, 16
.while ecx != 0
shr ebx,1
.endw
mov @movedY, ebx
程序运行后,占用CPU高达100%,而且变成“无响应”,另外窗口客户区原先使用的GRAY_BRUSH画的背景,也变成白的了,在该程序中,鼠标一直处于漏斗状,不知为何?
请高手解释一下!!!非常感谢了!!!!!!!!!!!