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
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
We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.
Create the edit box with the ES_READONLY style.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
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
Last edited by Aidman; 07-27-2003 at 09:46 AM.
We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.
Wuppy
I found it, the EM_SETREADONLY message.
Thanks adrianxw, it was your tip on ES_READONLY that helped me find it
We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.