Re: edit window select all text

new topic     » goto parent     » topic index » view thread      » older message » newer message

=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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu