我希望点击字符串的同时,处理光标附近的字符串。点击文本框,PreTranslateMessage如何确定新的光标位置?我现在在
BOOL Cinserttextdlg::PreTranslateMessage(MSG* pMsg)
{
    if(pMsg->hwnd==GetDlgItem(IDC_EDIT1)->GetSafeHwnd()&&WM_LBUTTONDOWN==pMsg->message)   
    {
         CEdit* pEdit=(CEdit*)GetDlgItem(IDC_EDIT1);
//光标位置
int nstart;
int nend;
 
pEdit->GetSel(nstart,nend);
         return true;
    }
    return CDialog::PreTranslateMessage(pMsg);
}
函数当中,仅仅可以得到先前的光标位置,