tomsell has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
Trawling the 'Net didn't turn up anything, so I'd like to ask this seemingly simple question:
After placing the caret/cursor in a Win32::GUI RichEdit control, how do I determine its absolute position, i.e the offset relative to the beginning of the entire buffer? I.e. what the emacs lisp (point) function returns.
GetSel() is meaningful only when there's a selection. And chaining GetCursorPos(), ScreenToClient() and CharFromPos() won't help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GUI RichEdit: get absolute cursor position
by BrowserUk (Patriarch) on Aug 08, 2012 at 18:21 UTC | |
by tomsell (Acolyte) on Aug 09, 2012 at 08:26 UTC |