Does any one have or know of an example of using
EM_GETSEL? I'm using C++ 6.0.
Thanks,
Frank.
DWORD dwStart = 0, dwEnd = 0;
SendMessage(hWndEdit, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
--
Jeff Partch [MVP]
For some reason it wouldn't let me do that, it was forcing me to use a
different send message; but chopping off the hWnd and calling
CWnd::SendMessage worked using the rest of the call.
Thanks again.
"Jeff Partch" <je...@mvps.org> wrote in message
news:uzx9eAdXCHA.1912@tkmsftngp09...
Sorry about posting an SDK sample to the MFC group, Frank. I don't know what I was thinking. Glad
you got it sorted out, but FYI in an MFC app the CEdit class also has an overloaded GetSel member
function that wraps this form of the SendMessage/EM_GETSEL call and is possibly slightly easier to
use -- if only because it requires less typing.
--
Jeff Partch [MVP]