[comp.windows.ms.programmer] Read only EDIT Windows

whisd@sersun1.essex.ac.uk (Whiteside S D B) (06/01/91)

I want to turn my child EDIT window from editable to read-only.

One way would be to create a static window and put the text in.

But I've seen a Windows prog that has a read-only edit window.
(WinInfo told me it was an edit: but it doesn't have a  caret and
it doesn't let you type).

Another advantage to edit is the scroll bar handling.

But I can't find anything anywhere that tells me how to make an
edit window read-only.

I've tried sub-classing, which knocks out the typing but not the caret.

Is there a neater (undocumented) way of doing this?

It might be a ES_ style or a EM_ notification message but the docs
don't mention it (Petzold/BC++ Help/Windows.h - can't get
programmer's reference guide).

Can you help?

THanks,
Simon Whiteside