Re: edit window select all text
- Posted by David Cuny <dcuny at LANSET.COM> Sep 03, 2000
- 638 views
=A9koda wrote:
> Does anybody know how do I select all text in simple
> singleline edit window within my program? I tried with
> EM_SETSEL messsage but it doesn't work.
According to the Win32 help file:
"If the nStart parameter is 0 and the nEnd parameter is -1,
all the text in the edit control is selected."
My guess is that:
ok =3D SendMessage(hwnd,EM_SETSEL,0,-1)
should work.
-- David Cuny

