When a user is on a cell in a grid and highlights a substring in the text, do you provide an easy way to tell what has been highlighted? as in the starting character index and the length of the highlight? I need to replace what has been highlighted with another selection the user might make - they will not necessarily be typing directly into the cell to overwrite, so I will need to save the start and end indexes to overwrite once they have made a selection. Hope that makes sense. Thank you for your help.
As soon as I start to highlight text in a cell, it goes into edit mode. So yes, I need to select some or all of the text in a cell during in-place edit and know what the start and end indexes of the highlighted text are. Thanks
To get the indexes of the selection in the in-place edit please use CEdit::GetSel method or send EM_GETSEL message to the edit. To access an in-place edit window please use CBCGPGridCtrl::GetInPlaceWnd method.