A
amdzh
Unregistered / Unconfirmed
GUEST, unregistred user!
用ClipCursor()可以把鼠标限制在本程序中.怎么把这种限制应用到外部程序?获取了外部程序的Hwnd以后要怎么做?
var
rtScreen: TRect;
HWndCalculator : HWnd;
begin
HWndCalculator:=FindWindow(nil, 'XXXXX');
rtScreen := Rect(form2.Left+4, form2.Top+30, form2.Left+form2.Width-4, form2.Top+form2.Height-4);
ClipCursor(@rtScreen);
var
rtScreen: TRect;
HWndCalculator : HWnd;
begin
HWndCalculator:=FindWindow(nil, 'XXXXX');
rtScreen := Rect(form2.Left+4, form2.Top+30, form2.Left+form2.Width-4, form2.Top+form2.Height-4);
ClipCursor(@rtScreen);