|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
EM_SETREADONLY
An application sends an EM_SETREADONLY message to set or remove the read-only
style (ES_READONLY) of an edit control.
EM_SETREADONLY
wParam = (WPARAM) (BOOL) fReadOnly; // read-only flag
lParam = 0; // not used; must be zero
Parameters
fReadOnly
Value of wParam. Specifies whether to set or remove the ES_READONLY style. A value of TRUE
sets the ES_READONLY style; a value of FALSE removes the ES_READONLY style.
Return Values
If the operation succeeds, the return value is nonzero; otherwise, it is zero.
Remarks
When an edit control has the ES_READONLY style, the user cannot change the
text within the edit control.
To determine whether an edit control has the ES_READONLY style, use the GetWindowLong function with the GWL_STYLE flag.
See Also
GetWindowLong
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|