Hi, all
I want to create an edit box and have it locked (not disable), so the content (the text) in the control can still be selected but not modified/edited. I am using regular Windows API, no MFC.
Thanks in advance :)
Printable View
Hi, all
I want to create an edit box and have it locked (not disable), so the content (the text) in the control can still be selected but not modified/edited. I am using regular Windows API, no MFC.
Thanks in advance :)
Create the edit box with the ES_READONLY style.
But I want to be able to lock and unlock the edit box during runtime. Isn't there any window message that could be sent?
Edit:
Sorry I should have mentioned that earlier :(
Wuppy :D
I found it, the EM_SETREADONLY message.
Thanks adrianxw, it was your tip on ES_READONLY that helped me find it :)