CRichEditCtrl - where's the cursor?
I've added a "row, column" pane to the status bar of my frame wnd.
When the rich edit ctrl receives the selchange notification, I'm determining what the selection is and updating the pane. My problem is that GetSel() always returns the left most selection as min and the right most selection as max and I'm determining the column by calc'ing the (cpMin - LineIndex()). Obviously if the user has selected text toward the right, the cursor will be at the cpMax position, but I'm still retrieving the row from the beginning of the selection.
Do you have any ideas about how I can go about determining where the cursor itself is within the selection (either at min or max)? Or a better way to retrieve the current row of the cursor?
Thanks bunches yo.