If I use SetWindowLong to disable input to an edit control with style EM_SETREADONLY, how do I reverse it to once again allow input to the edit control? EM_UNDO doesn't seem to work.
Got it figured out. Just needed to use SendMessage instead of SetWindowLong to set EM_SETREADONLY. The third parameter sets the read only attribute based on a 1 or 0 (zero).
You can also use EnableWindow() which is faster, greys the window and prevents tabbing to it when it's disabled.
If you don't have the Windows SDK you should download it... HERE (http://www.microsoft.com/en-us/download/details.aspx?id=18950) (You only need the Documentation. Pelles C supplies the rest)