CEdit内のカーソル位置
int n = GetEditCtrl().CharFromPos(GetEditCtrl().GetCaretPos()); int nLineIndex = HIWORD(n); int nCharIndex = LOWORD(n);
意外と簡単にとれるんだな。
逆はこう
int c = GetEditCtrl().LineIndex(l);
GetEditCtrl().SetSel(c,c);
int n = GetEditCtrl().CharFromPos(GetEditCtrl().GetCaretPos()); int nLineIndex = HIWORD(n); int nCharIndex = LOWORD(n);
意外と簡単にとれるんだな。
int c = GetEditCtrl().LineIndex(l);
GetEditCtrl().SetSel(c,c);