以及能否设置光标在文本框的位置?

解决方案 »

  1.   

    当然可以的你看一下CEdit类,里面有说用哪个方法的,好象是GetCursor(),忘了
      

  2.   

    BOOL GetCaretPos(
      LPPOINT lpPoint   // client coordinates
    );BOOL SetCaretPos(
      int X,  // horizontal position
      int Y   // vertical position
    );
      

  3.   

    void GetSel( int& nStartChar, int& nEndChar )
      

  4.   

    GetSel( int& nStartChar, int& nEndChar )
      

  5.   

    http://go8.163.com/vbboshi/vbtech/interface/page_2/file38.htm
    快给分,不然以后不给你讲了
      

  6.   

    http://go8.163.com/vbboshi/vbtech/interface/page_2/file38.htm
    这就是你需要的,看看吧