🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

EM_SETMODIFY

#3374
From: Max E. Metral
Date: Mon, 24 Jun 1991 21:06
15 lines
833 bytes
I am trying to make an edit control read-only.

The parent window is Parent, and the control is EDITCNT.

	SendMessage(EDITCNT, EM_SETMODIFY, FALSE, NULL);
	
	or
	
	SendMessage(Parent, EM_SETMODIFY, FALSE, NULL);

don't work.  What am I doing wrong?  The SDK man never says what value I should
set the flag to to make it read-only...

Thx.
--==<Max Metral>==--
Technical Details
Message-ID: <1991Jun24.210619.13889@athena.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!memetral

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!memetral
From: memetral@athena.mit.edu (Max E. Metral)
Subject: EM_SETMODIFY
Message-ID: <1991Jun24.210619.13889@athena.mit.edu>
Sender: news@athena.mit.edu (News system)
Organization: Massachusetts Institute of Technology
Distribution: usa
Date: Mon, 24 Jun 91 21:06:19 GMT
Lines: 17