What i am trying to do is copy the text that is currently selected in a richedit control into a buffer. One way to do this would be use EM_GETSEL to get what the current selection is. Then use GetWindowText() to get all the text out of the edit and pull out the selection that way.
But i have a feeling there's an easier way to do it.