怎么可以得到系统键盘光标的位置?

解决方案 »

  1.   

    广告时间http://expert.csdn.net/Expert/topic/1274/1274239.xml?temp=.1771356请多关注,多谢
      

  2.   

    1.//uses shellapi
    var
            pt:TPoint;
    begin
            GetCaretPos(pt);
            edit1.Text:=inttostr(pt.x);
            edit2.Text:=inttostr(pt.Y);
    end;
    2.
    begin
            edit1.Text:=inttostr(memo1.CaretPos.X);
            edit2.Text:=inttostr(memo1.CaretPos.Y);
    end;
      

  3.   

    系统键盘光标???鼠标位置:getcursorpos
    光标位置:selstart如:edit中光标位置 = edit1.selstart;