🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2972

Read only EDIT Windows

#2972
From: Whiteside S D B
Date: Fri, 31 May 1991 18:30
25 lines
1263 bytes
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
Technical Details
Message-ID: <5232@servax0.essex.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!servax0!sersun1!whisd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!servax0!sersun1!whisd
From: whisd@sersun1.essex.ac.uk (Whiteside S D B)
Newsgroups: comp.windows.ms.programmer
Subject: Read only EDIT Windows
Message-ID: <5232@servax0.essex.ac.uk>
Date: 31 May 91 18:30:58 GMT
Sender: news@servax0.essex.ac.uk
Reply-To: whisd@essex.ac.uk (Whiteside S D B)
Distribution: comp.windows.ms.programmer
Organization: University of Essex, Colchester, UK
Lines: 25